/**
 * Auth pages — polish layer (Plus Jakarta Sans, biru–putih)
 * Base struktur di app.css; file ini menambah refinemen visual.
 */

.auth-page.landing-page {
    background: #f0f2f5;
    min-height: 100vh;
}

/* ── Shell & brand panel ── */
.auth-page .auth-shell {
    min-height: 100vh;
}

.auth-page .auth-panel--brand {
    background: var(--lp-blue, #1e5aa8);
}

.auth-page .auth-brand-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 95%);
}

.auth-page .auth-panel--brand h1,
.auth-page.landing-page .auth-panel--brand h1 {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
}

.auth-page .auth-panel--brand .auth-brand-lead {
    color: rgba(255, 255, 255, 0.92);
}

.auth-page .auth-brand-lead {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    line-height: 1.75;
    opacity: 0.92;
}

.auth-page .auth-benefits li {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    padding: 10px 14px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.auth-page .auth-check {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #b5cbe3;
}

.auth-page .auth-brand-stats {
    gap: 10px;
}

.auth-page .auth-stat {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.auth-page .auth-stat strong {
    font-size: 0.95rem;
}

/* ── Form panel ── */
.auth-page .auth-panel--form {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 50% at 10% 90%, rgba(37, 99, 235, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 95% 10%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f8 100%);
}

.auth-page .auth-panel--form::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
}

.auth-page .auth-topbar,
.auth-page .auth-card-wrap {
    position: relative;
    z-index: 1;
}

.auth-page .auth-topbar {
    padding: 12px clamp(16px, 4vw, 28px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-page .auth-topbar .brand {
    text-decoration: none;
}

.auth-page .auth-topbar-link {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--lp-blue, #1e5aa8);
    border: 1px solid var(--lp-blue-border, #dbeafe);
    border-radius: 999px;
    padding: 8px 16px;
    background: #fff;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.auth-page .auth-topbar-link:hover {
    background: var(--lp-blue-soft, #eff6ff);
    border-color: var(--lp-blue, #1e5aa8);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.auth-page .auth-card-wrap {
    padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 32px);
}

/* ── Card ── */
.auth-page .auth-card {
    position: relative;
    overflow: hidden;
    max-width: 420px;
    padding: clamp(28px, 4vw, 36px) clamp(22px, 4vw, 32px) clamp(22px, 4vw, 28px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.05),
        0 24px 48px rgba(37, 99, 235, 0.06);
    backdrop-filter: blur(8px);
    animation: auth-card-in 0.45s ease-out both;
}

.auth-page .auth-card--wide {
    max-width: 460px;
}

@keyframes auth-card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-page .auth-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--lp-blue, #1e5aa8);
    border: 1px solid #b5cbe3;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.auth-page .auth-card-icon svg {
    width: 26px;
    height: 26px;
}

.auth-page .auth-card-head {
    margin-bottom: 22px;
    text-align: center;
}

.auth-page .auth-card-head h1 {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 700;
    font-size: clamp(1.35rem, 3vw, 1.6rem);
    color: var(--lp-color-heading, #1e3a8a);
    letter-spacing: -0.025em;
    margin: 0 0 8px;
}

.auth-page .auth-card-head p {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    color: var(--lp-muted, #64748b);
    line-height: 1.65;
    margin: 0;
    font-size: 0.9375rem;
}

.auth-page .auth-card-head p strong {
    color: var(--lp-color-subheading, #1e40af);
    font-weight: 600;
}

/* ── Alerts in card ── */
.auth-page .auth-card .isp-inline-alert {
    margin-bottom: 0;
    padding: 11px 13px;
    gap: 10px;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.45;
    font-weight: 400;
    box-shadow: none;
    align-items: center;
}

.auth-page .auth-card .isp-inline-alert__icon:has(.bi) {
    background: transparent !important;
    box-shadow: none !important;
}

.auth-page .auth-card .isp-inline-alert__icon .bi {
    font-size: 1.2rem;
}

.auth-page .auth-card .isp-inline-alert__text {
    color: #1c1e21;
}

/* ── Form fields ── */
.auth-page .auth-form {
    gap: 16px;
}

.auth-page .auth-field-label {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--lp-color-subheading, #1e40af);
}

.auth-page .auth-input-wrap {
    border-radius: 12px;
    transition: box-shadow 0.15s;
}

.auth-page .auth-input-wrap:focus-within {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    border-radius: 12px;
}

.auth-page .auth-input {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    border-radius: 12px;
    border-color: #e2e8f0;
    background: #fff;
}

.auth-page .auth-input:hover {
    border-color: #cbd5e1;
}

.auth-page .auth-input:focus {
    border-color: var(--lp-blue, #1e5aa8);
    box-shadow: none;
}

.auth-page .auth-input-icon {
    color: #94a3b8;
}

.auth-page .auth-input-wrap:focus-within .auth-input-icon {
    color: var(--lp-blue, #1e5aa8);
}

.auth-page .auth-password-toggle {
    border-radius: 8px;
}

.auth-page .auth-password-toggle:hover {
    background: #eff6ff;
    color: var(--lp-blue, #1e5aa8);
}

.auth-page .auth-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lp-blue, #1e5aa8);
}

/* ── Captcha ── */
.auth-page .auth-captcha {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.auth-page .auth-captcha-row {
    align-items: stretch;
}

.auth-page .auth-captcha-image-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.auth-page .auth-captcha-refresh {
    display: grid;
    place-items: center;
    width: 40px;
    min-width: 40px;
    color: var(--lp-blue, #1e5aa8);
    border-left: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: background 0.15s, color 0.15s;
}

.auth-page .auth-captcha-refresh svg {
    width: 18px;
    height: 18px;
}

.auth-page .auth-captcha-refresh:hover {
    background: #eff6ff;
}

.auth-page .auth-captcha-hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Password strength ── */
.auth-page .auth-password-meter-bar {
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
}

.auth-page .auth-password-rules {
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.auth-page .auth-password-rules li.is-valid {
    color: #15803d;
}

/* ── Submit ── */
.auth-page .btn-primary.auth-submit {
    font-family: var(--lp-font, 'Segoe UI', system-ui, sans-serif);
    font-weight: 600;
    font-size: 0.9375rem;
    background: var(--lp-blue, #1e5aa8);
    border: none;
    border-radius: 6px;
    min-height: 50px;
    box-shadow: none;
    transition: background 0.15s;
}

.auth-page .btn-primary.auth-submit:hover:not(:disabled) {
    background: var(--lp-blue-dark, #1a5098);
    transform: none;
    box-shadow: none;
}

.auth-page .btn-primary.auth-submit:active:not(:disabled) {
    transform: translateY(0);
}

.auth-page .btn-primary.auth-submit:disabled {
    opacity: 0.55;
    box-shadow: none;
}

/* ── Plan banner ── */
.auth-page .auth-plan-banner {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.auth-page .auth-plan-banner__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

/* ── Steps (activation) ── */
.auth-page .auth-steps {
    margin: 0 0 20px;
    gap: 0;
    position: relative;
    padding-left: 4px;
}

.auth-page .auth-step {
    position: relative;
    padding: 14px 14px 14px 48px;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 0.875rem;
}

.auth-page .auth-step:first-child {
    border-radius: 12px 12px 0 0;
}

.auth-page .auth-step:last-child {
    border-radius: 0 0 12px 12px;
    margin-bottom: 0;
}

.auth-page .auth-step + .auth-step {
    border-top: none;
}

.auth-page .auth-step span {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    font-size: 0.6875rem;
}

/* ── Trust chips ── */
.auth-page .auth-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    list-style: none;
}

.auth-page .auth-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    line-height: 1.3;
}

.auth-page .auth-trust-icon {
    width: auto;
    height: auto;
    color: #1e5aa8;
}

.auth-page .auth-trust-icon svg {
    width: 12px;
    height: 12px;
}

/* ── Footer links ── */
.auth-page .auth-footer {
    font-family: var(--lp-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: var(--lp-muted, #64748b);
    line-height: 1.6;
}

.auth-page .auth-footer a {
    color: var(--lp-blue, #1e5aa8);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-page .auth-inline-action {
    text-align: center;
    margin: -8px 0 12px;
    font-size: 0.875rem;
}

.auth-page .auth-dev-link {
    padding: 14px 16px;
    margin-bottom: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 0.875rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .auth-page .auth-panel--brand {
        padding-bottom: 36px;
        min-height: auto;
    }

    .auth-page .auth-panel--brand h1 {
        font-size: 1.5rem;
        margin-top: 12px;
    }

    .auth-page .auth-brand-stats {
        margin-top: 20px;
    }

    .auth-page .auth-benefits li {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-card {
        border-radius: 16px;
        padding: 24px 18px 20px;
    }

    .auth-page .auth-plan-banner {
        flex-wrap: wrap;
    }

    .auth-page .auth-plan-banner__change {
        width: 100%;
        text-align: right;
    }

    .auth-page .auth-trust {
        justify-content: center;
    }

    .auth-page .auth-captcha-row {
        flex-direction: column;
    }

    .auth-page .auth-captcha-input {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page .auth-card {
        animation: none;
    }
}
