/* Auth pages (login, register, password reset) — scoped to .page-auth-guest */
.page-auth-guest {
    --auth-navy: #0b033f;
    --auth-navy-hover: #15065c;
    --auth-accent: #3b5bfd;
    --auth-accent-soft: #e8f1ff;
    --auth-border: #d7e2f0;
    --auth-text: #1a1535;
    --auth-muted: #5c5678;
    --auth-danger: #c62828;
    --auth-danger-bg: #ffebee;
    --auth-success: #2e7d32;
    --auth-radius: 12px;
    --auth-shadow: 0 24px 48px rgba(11, 3, 63, 0.08);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Do not style #sticky-header / .menu-area here: backdrop-filter breaks the
   theme’s fixed .mobile-menu (right drawer) positioning. */

/* Clear absolutely positioned transparent header — same idea as .login-area padding */
.page-auth-guest .auth-shell {
    min-height: calc(100vh - 90px);
    padding-top: 110px;
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(180deg, #fafbfd 0%, #ffffff 40%);
}

.auth-shell-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.auth-split {
    align-items: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--auth-shadow);
    background: #fff;
    border: 1px solid rgba(215, 226, 240, 0.8);
}

.auth-form-col {
    padding: 2.5rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .auth-form-col {
        padding: 3rem 3.25rem;
    }
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-brand-mobile {
    margin-bottom: 1.75rem;
}

.auth-brand-mobile img {
    max-height: 40px;
    width: auto;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-navy);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--auth-muted);
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 1.15rem;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-text);
    margin-bottom: 0.4rem;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--auth-text);
    background: var(--auth-accent-soft);
    border: 1px solid transparent;
    border-radius: var(--auth-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input::placeholder {
    color: #9aa3b8;
}

.auth-input:hover {
    background: #e0ebff;
}

.auth-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(59, 91, 253, 0.2);
}

.auth-input.is-invalid {
    background: #fff5f5;
    border-color: #e57373;
}

.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.auth-field-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--auth-danger);
    margin-top: 0.35rem;
    font-weight: 500;
}

.auth-row-link {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.35rem;
    margin-bottom: 1.25rem;
}

.auth-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-navy);
    text-decoration: underline;
}

.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--auth-navy);
    border: none;
    border-radius: var(--auth-radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.auth-btn-primary:hover {
    background: var(--auth-navy-hover);
    color: #fff;
}

.auth-btn-primary:active {
    transform: scale(0.99);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0;
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.78rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--auth-text);
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-btn-google:hover {
    background: #f8fafc;
    border-color: #c5d4e8;
    color: var(--auth-text);
    box-shadow: 0 4px 12px rgba(11, 3, 63, 0.06);
}

.auth-btn-google svg {
    flex-shrink: 0;
}

.auth-footer-text {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-footer-text a {
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--auth-radius);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.auth-alert-success {
    background: #e8f5e9;
    color: var(--auth-success);
    border: 1px solid #a5d6a7;
}

.auth-alert-danger {
    background: var(--auth-danger-bg);
    color: var(--auth-danger);
    border: 1px solid #ffcdd2;
}

/* Marketing column */
.auth-visual-col {
    background: linear-gradient(165deg, #f0f4ff 0%, #e8eeff 45%, #f5f0ff 100%);
    padding: 2.5rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-visual-col::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 20%, rgba(59, 91, 253, 0.12), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.1), transparent 45%);
    pointer-events: none;
}

.auth-visual-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.auth-visual-inner img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(11, 3, 63, 0.12));
}

.auth-tagline {
    margin-top: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--auth-text);
    font-weight: 500;
}

.auth-tagline .auth-gradient-brand {
    font-weight: 700;
    background: linear-gradient(120deg, #6366f1, #8b5cf6, #3b5bfd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 991.98px) {
    .auth-split {
        border-radius: var(--auth-radius);
    }

    .page-auth-guest .auth-shell {
        padding-top: 130px;
        padding-bottom: 2rem;
    }

    .auth-form-col {
        padding: 1.75rem 1.25rem;
    }
}
