.aq-auth-page {
    min-height: 700px;
    padding: 52px 0 76px;
    background:
        radial-gradient(circle at 50% 8%, rgba(7, 152, 189, .10), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.aq-auth-clean-wrap {
    display: flex;
    justify-content: center;
}

.aq-auth-card {
    width: min(486px, 100%);
    border: 1px solid #dbe7f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
    padding: 30px;
}

.aq-auth-card-compact {
    width: min(460px, 100%);
}

.aq-auth-brand-mini {
    text-align: center;
    margin-bottom: 22px;
}

.aq-auth-logo-mini {
    display: block;
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    text-decoration: none;
}

.aq-auth-logo-mini::first-letter {
    color: #0798bd;
}

.aq-auth-brand-mini span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.aq-auth-card-head {
    text-align: center;
    margin-bottom: 24px;
}

.aq-auth-card-head span {
    color: #0798bd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.aq-auth-card-head h1 {
    margin: 10px 0 10px;
    color: #111827;
    font-family: inherit;
    font-size: 34px;
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.aq-auth-card-head p {
    margin: 0 auto;
    max-width: 340px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.aq-auth-form {
    display: grid;
    gap: 15px;
}

.aq-auth-field {
    display: grid;
    gap: 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.aq-auth-input {
    min-height: 54px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    border: 1px solid #dbe7f0;
    border-radius: 14px;
    background: #f8fbfd;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.aq-auth-input:focus-within {
    border-color: #0798bd;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(7, 152, 189, .12);
}

.aq-auth-input > i {
    color: #0798bd;
    font-size: 18px;
}

.aq-auth-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font: inherit;
    font-size: 15px;
}

.aq-auth-input input::placeholder {
    color: #94a3b8;
}

.aq-auth-password-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dbe7f0;
    color: #64748b;
}

.aq-auth-password-toggle:hover {
    color: #0798bd;
    border-color: #b9ddea;
}

.aq-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 2px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.aq-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.aq-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: #0798bd;
}

.aq-auth-options a,
.aq-auth-switch a {
    color: #0798bd;
    font-weight: 800;
    text-decoration: none;
}

.aq-auth-options a:hover,
.aq-auth-switch a:hover {
    text-decoration: underline;
}

.aq-auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #0798bd 0%, #04a9cf 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(7, 152, 189, .24);
    transition: transform .22s ease, box-shadow .22s ease;
}

.aq-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(7, 152, 189, .30);
}

.aq-auth-submit-link {
    width: 100%;
    margin-top: 16px;
}

.aq-auth-switch {
    margin: 2px 0 0;
    color: #64748b;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.aq-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.aq-auth-divider::before,
.aq-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #dbe7f0;
}

.aq-auth-guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    border: 2px solid #dbe7f0;
    border-radius: 14px;
    background: #f8fbfd;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.aq-auth-guest-btn:hover {
    border-color: #0798bd;
    background: #e7f9fd;
    color: #0798bd;
}

.aq-auth-state {
    border-radius: 16px;
    border: 1px solid #dbe7f0;
    background: #f8fbfd;
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.aq-auth-state i {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e7f9fd;
    color: #0798bd;
    font-size: 24px;
}

.aq-auth-state strong {
    display: block;
    color: #111827;
    font-size: 17px;
    margin-bottom: 6px;
}

.aq-auth-state p {
    margin: 0;
}

.aq-auth-state-error {
    margin-bottom: 14px;
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
    text-align: left;
}

/* Legacy register/auth compatibility */
.auth-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 20px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #dbe7f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e5edf4;
}

.auth-tabs a {
    padding: 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.auth-tabs a.active {
    color: #0798bd;
    box-shadow: inset 0 -2px 0 #0798bd;
}

.auth-body {
    padding: 28px;
}

.auth-body .field {
    margin-bottom: 14px;
}

.auth-body .field input,
.auth-body .field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid #dbe7f0;
    border-radius: 14px;
    background: #f8fbfd;
    color: #111827;
    font: inherit;
}

.consents {
    display: grid;
    gap: 10px;
    margin: 16px 0 16px;
}

.consent-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 13px;
    border: 1px solid #dbe7f0;
    border-radius: 14px;
    background: #f8fbfd;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    cursor: pointer;
}

.consent-row input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #0798bd;
}

.consent-row strong {
    color: #111827;
    font-weight: 850;
}

.consent-row a {
    color: #056f8d;
    font-weight: 850;
    text-decoration: none;
}

.consent-row a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-row-required {
    background: #ffffff;
    border-color: #bfe2ec;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    background: #0798bd;
    color: #ffffff;
    font-weight: 850;
}

@media (max-width: 767.98px) {
    .aq-auth-page {
        min-height: auto;
        padding: 26px 0 46px;
    }

    .aq-auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    .aq-auth-card-head h1 {
        font-size: 30px;
    }

    .aq-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-wrap {
        padding: 28px 10px;
    }

    .auth-body {
        padding: 24px;
    }

    .consent-row {
        padding: 11px 12px;
        font-size: 12.7px;
    }
}
