/* Login, 2FA, reset password, etc. */

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, rgba(11, 99, 56, .08), transparent 32%), linear-gradient(135deg, #f7faf8 0%, #edf5f0 100%);
    padding: 1rem;
}

.auth-shell {
    width: min(480px, 100%);
}

.auth-card {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(220, 232, 223, .95);
    border-radius: 24px;
    padding: 2rem 1.7rem;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
}

.auth-brand-block {
    display: flex;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.auth-logo {
    display: block;
    max-width: 160px;
    max-height: 72px;
    object-fit: contain;
}

.auth-header {
    margin-bottom: 1.6rem;
    text-align: center;
}

    .auth-header.compact {
        margin-bottom: 1.2rem;
    }

.auth-title {
    margin: 0 0 .45rem;
    font-size: 1.65rem;
    line-height: 1.15;
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 1.05rem;
}

.auth-form-compact {
    gap: .9rem;
}

.auth-field {
    display: grid;
    gap: .45rem;
}

.auth-label {
    font-weight: 600;
    color: #26384f;
    font-size: .93rem;
}

.auth-input {
    min-height: 48px;
    font-size: .98rem;
    border-radius: 13px;
    padding: .85rem 1rem;
    background: #fff;
    border-color: #d8e3dc;
}

    .auth-input::placeholder {
        color: #98a2b3;
    }

.input-wrap {
    position: relative;
}

.input-wrap-icon .auth-input {
    padding-left: 2.75rem;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: .95rem;
    transform: translateY(-50%);
    color: #7b8794;
    font-size: .95rem;
    pointer-events: none;
}

.input-wrap-with-action .auth-input {
    padding-right: 3.25rem;
}

.input-action {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    padding: .35rem .45rem;
    border-radius: 10px;
}

    .input-action:hover {
        background: rgba(11, 99, 56, .08);
    }

.input-action-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-grid;
    place-items: center;
}

.auth-code-input {
    letter-spacing: .32em;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 13px;
    font-size: 1rem;
    margin-top: .3rem;
    gap: .5rem;
    box-shadow: 0 10px 22px rgba(11, 99, 56, .16);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .2rem 0;
    color: #42526e;
    font-size: .95rem;
    line-height: 1.45;
}

    .check-row input {
        margin-top: .18rem;
        width: 16px;
        height: 16px;
        accent-color: var(--brand);
    }

.qr-panel {
    display: grid;
    justify-items: center;
    gap: .55rem;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.qr-box {
    display: grid;
    place-items: center;
    margin: .35rem auto .9rem;
    min-height: 180px;
}

    .qr-box canvas,
    .qr-box img {
        display: block;
        border-radius: 10px;
    }

.qr-panel strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--brand-dark);
    word-break: break-all;
    font-weight: 600;
}

@media(max-width: 640px) {
    .auth-card {
        padding: 1.5rem 1.1rem;
        border-radius: 22px;
    }

    .auth-logo {
        max-width: 145px;
        max-height: 64px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: .93rem;
    }
}
