.auth-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.auth-shell-narrow {
    width: min(520px, 100%);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-brand img {
    width: 260px;
    max-width: 44vw;
    height: auto;
}

.auth-card {
    display: block;
    padding: 24px;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.auth-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    border: 1px solid #e1e8f0;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}

.profile-card-name {
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.05rem;
}

.employee-avatar {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
}

.employee-avatar-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.employee-avatar-xl { width: 82px; height: 82px; font-size: 1.35rem; }

.employee-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin-input {
    -webkit-text-security: disc;
    letter-spacing: .35em;
    text-align: center;
    font-weight: 700;
}

.pin-input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.telegram-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: #229ed9;
    font-size: 22px;
    transform: rotate(-25deg);
}

.telegram-challenge-panel {
    border-color: #93c5fd;
}

.telegram-qr {
    width: 230px;
    max-width: 70vw;
    padding: 10px;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 12px;
}

.telegram-qr svg { display: block; width: 100%; height: auto; }

.telegram-code {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eef2ff;
    color: #1e3a8a;
    font: 800 1.75rem/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .2em;
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.nav-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
}

.nav-logout-button svg {
    width: 21px;
    height: 21px;
}

@media (max-width: 767px) {
    .auth-brand { align-items: flex-start; flex-direction: column; }
    .auth-brand img { max-width: 78vw; }
    .auth-card { padding: 18px; border-radius: 14px; }
}
