/* Central shared styles migrated from auth_common.php. */

.auth-password-field,
.password-input,
input[data-auth-password] {
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: isolate !important;
    font-family: Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}
.auth-password-toggle,
.password-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin: -6px 0 14px;
    color: #334155;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    direction: rtl;
}
.auth-password-toggle input[type="checkbox"],
.password-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: #0f766e;
    cursor: pointer;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.auth-page .shell {
    border: 1px solid var(--ui-color-line);
    border-radius: var(--ui-radius-xl);
    background: var(--ui-color-surface);
    box-shadow: var(--ui-shadow-modal);
}

.auth-page .hero {
    background: var(--ui-gradient-brand);
    color: var(--ui-color-surface);
}

.auth-page .hero :where(h1, h2, p) {
    color: var(--ui-color-surface);
}

.auth-page .hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.32;
    font-weight: 900;
}

.auth-page .hero p {
    font-size: 17px;
    line-height: 2;
    opacity: .94;
}

.auth-page .hero-badge {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--ui-radius-md);
    background: rgba(255, 255, 255, .13);
    color: var(--ui-color-surface);
    font-weight: 800;
}

.auth-page .form-wrap {
    background: var(--ui-color-surface);
}

.auth-page .brand {
    border-radius: var(--ui-radius-lg);
    background: var(--ui-gradient-brand);
    color: var(--ui-color-surface);
    box-shadow: var(--ui-shadow-control-hover);
    font-size: 30px;
    font-weight: 900;
}

.auth-page .form-wrap h2,
.auth-page > :where(.card, .panel) h1 {
    color: var(--ui-color-primary-strong);
    font-size: 32px;
    font-weight: 900;
}

.auth-page :where(.intro, .footer-note, .note) {
    color: var(--ui-color-muted);
    font-weight: 700;
    line-height: 1.8;
}

.auth-page :where(.forgot-link, .back-link, .logout-link) {
    color: var(--ui-color-primary);
    font-weight: 800;
    text-decoration: none;
}

.auth-page .turnstile-box {
    border: 1px solid var(--ui-color-table-line);
    border-radius: var(--ui-radius-md);
    background: var(--ui-color-surface-soft);
}

@media (max-width: 900px) {
    .auth-page {
        padding: 18px;
    }

    .auth-page .hero h1 {
        font-size: 30px;
    }

    .auth-page .hero p {
        font-size: 15px;
    }
}
