/* ═══════════════════════════════════════════════════════════════
   Auth UI v8 — mobile app first (login, reset, register)
   ═══════════════════════════════════════════════════════════════ */

.auth-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
}

.auth-mobile-page {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-primary-soft: rgba(37, 99, 235, 0.12);
    --auth-hero-from: #1e40af;
    --auth-hero-mid: #2563eb;
    --auth-hero-to: #4f46e5;
    --auth-surface: #ffffff;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #e2e8f0;
    --auth-input-bg: #f8fafc;
    --auth-radius: 14px;
    --auth-radius-lg: 20px;
    --auth-touch: 48px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--auth-surface);
    color: var(--auth-text);
}

.auth-mobile-page--slug {
    --auth-primary: #0891b2;
    --auth-primary-dark: #0e7490;
    --auth-primary-soft: rgba(8, 145, 178, 0.12);
    --auth-hero-from: #0e7490;
    --auth-hero-mid: #0891b2;
    --auth-hero-to: #2563eb;
}

/* ── App shell ── */
.auth-mobile-frame {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Hero */
.auth-hero {
    position: relative;
    flex-shrink: 0;
    min-height: clamp(168px, 32dvh, 240px);
    background: linear-gradient(155deg, var(--auth-hero-from) 0%, var(--auth-hero-mid) 48%, var(--auth-hero-to) 100%);
    display: flex;
    flex-direction: column;
    padding-top: max(env(safe-area-inset-top), 8px);
    overflow: hidden;
}

/* Dekorasi hero: glow + ikon pendidikan mengambang */
.auth-hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 45% at 10% 75%, rgba(99, 102, 241, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
}

.auth-hero-deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.auth-float {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    animation: authIconFloat 5s ease-in-out infinite;
}

.auth-float i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.auth-float--1 { width: 46px; height: 46px; font-size: 1.15rem; top: 14%; left: 6%; animation-delay: 0s; }
.auth-float--2 { width: 40px; height: 40px; font-size: 1rem; top: 22%; right: 8%; animation-delay: 0.6s; }
.auth-float--3 { width: 42px; height: 42px; font-size: 1.05rem; top: 48%; left: 4%; animation-delay: 1.2s; }
.auth-float--4 { width: 38px; height: 38px; font-size: 0.95rem; top: 55%; right: 12%; animation-delay: 1.8s; }
.auth-float--5 { width: 44px; height: 44px; font-size: 1.1rem; top: 32%; left: 42%; animation-delay: 0.9s; opacity: 0.85; }
.auth-float--6 { width: 36px; height: 36px; font-size: 0.9rem; top: 68%; left: 28%; animation-delay: 2.4s; }
.auth-float--7 { width: 34px; height: 34px; font-size: 0.85rem; top: 12%; left: 55%; animation-delay: 3s; opacity: 0.75; }

@keyframes authIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.75;
    }
    50% {
        transform: translateY(-14px) rotate(6deg) scale(1.06);
        opacity: 1;
    }
}

.auth-hero-top {
    position: relative;
    z-index: 4;
    padding: 4px 16px 0;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.12s;
}

.auth-back:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.24);
}

.auth-back span {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-hero-body {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 20px 64px;
    text-align: center;
}

.auth-hero-brand {
    animation: authFadeIn 0.5s ease both;
}

.auth-logo-wrap {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-logo-wrap i {
    font-size: 1.75rem;
    color: #fff;
}

.auth-hero-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-hero-sub {
    margin: 6px 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
    max-width: 280px;
}

.auth-mobile-page--form .auth-hero-sub:not(.auth-hero-sub--school) {
    display: none;
}

.auth-waves-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 52px;
    z-index: 2;
    pointer-events: none;
}

.auth-waves {
    width: 100%;
    height: 100%;
    display: block;
}

.auth-wave-main {
    fill: var(--auth-surface);
    animation: authWaveDrift 8s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes authWaveDrift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-1.2%); }
}

/* Scrollable form area */
.auth-sheet {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--auth-surface);
    position: relative;
    z-index: 5;
}

.auth-card {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 20px 20px max(24px, env(safe-area-inset-bottom));
    animation: authSlideUp 0.45s 0.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page head */
.auth-page-head,
.auth-signin-head {
    margin-bottom: 22px;
}

.auth-page-title,
.auth-signin-title {
    margin: 0 0 10px;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--auth-text);
}

.auth-page-accent,
.auth-signin-line {
    display: block;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: var(--auth-primary);
    margin-bottom: 10px;
}

.auth-page-desc,
.auth-card-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

/* Alerts */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--auth-radius);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 16px;
}

.auth-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.auth-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

/* Form */
.auth-field {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.auth-label .req {
    color: #ef4444;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--auth-touch);
    border: 1.5px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 12px 44px 12px 42px;
    font-size: 1rem;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input:not(.auth-input--plain) {
    /* with icon */
}

.auth-input--plain {
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.auth-input:focus {
    border-color: var(--auth-primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--auth-primary-soft);
}

.auth-input::placeholder {
    color: #94a3b8;
}

select.auth-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 20 20'%3E%3Cpath d='M5.25 7.5L10 12.25 14.75 7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.auth-eye {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-eye:hover,
.auth-eye:focus-visible {
    color: var(--auth-primary);
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
    flex-wrap: wrap;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--auth-muted);
    cursor: pointer;
    margin: 0;
}

.auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--auth-primary);
    cursor: pointer;
}

.auth-forgot-inline {
    margin: 0;
}

.auth-forgot-inline a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--auth-primary);
    text-decoration: none;
}

.auth-forgot-inline a:hover {
    text-decoration: underline;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--auth-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
    transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
}

.auth-mobile-page--slug .auth-submit {
    box-shadow: 0 10px 28px rgba(8, 145, 178, 0.28);
}

.auth-submit:hover {
    background: var(--auth-primary-dark);
}

.auth-submit:active {
    transform: scale(0.98);
}

.auth-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 20px -20px -24px;
    padding: 16px 20px max(16px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 28%);
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
    line-height: 1.5;
}

.auth-footer a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer--note {
    margin-top: 18px;
    text-align: left;
    font-size: 0.8125rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #94a3b8;
    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);
}

/* Register sections */
.auth-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.auth-section-title::before,
.auth-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

.auth-section-title:first-of-type {
    margin-top: 0;
}

.auth-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.auth-field-row .auth-field {
    margin-bottom: 0;
}

@media (max-width: 380px) {
    .auth-field-row {
        grid-template-columns: 1fr;
    }
    .auth-field-row .auth-field {
        margin-bottom: 16px;
    }
    .auth-field-row .auth-field:last-child {
        margin-bottom: 0;
    }
}

.auth-npsn-box {
    border: 2px solid #c7d2fe;
    background: #eef2ff;
    border-radius: var(--auth-radius);
    padding: 14px;
    margin-bottom: 16px;
}

.auth-npsn-box.is-error {
    border-color: #fecaca;
    background: #fef2f2;
}

.auth-npsn-box .auth-label {
    color: #3730a3;
}

.auth-npsn-box.is-error .auth-label {
    color: #b91c1c;
}

.auth-hint {
    font-size: 0.75rem;
    color: var(--auth-muted);
    margin: 6px 0 0;
    line-height: 1.45;
}

.auth-hint.is-error {
    color: #dc2626;
    font-weight: 600;
}

.auth-trial-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px;
    border-radius: var(--auth-radius);
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    border: 1.5px solid #a7f3d0;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    color: #374151;
    line-height: 1.5;
}

.auth-trial-banner strong {
    color: #047857;
}

.auth-paket-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 14px;
    margin-bottom: 14px;
    padding-top: 10px;
    align-items: stretch;
}

.auth-paket-label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
}

.auth-paket-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-paket-card {
    border: 2px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 12px 8px;
    text-align: center;
    background: var(--auth-input-bg);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

.auth-paket-label input:checked + .auth-paket-card {
    border-color: var(--auth-primary);
    background: #eff6ff;
    box-shadow: 0 4px 16px var(--auth-primary-soft);
}

.auth-paket-name {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--auth-text);
    margin-bottom: 4px;
}

.auth-paket-label input:checked + .auth-paket-card .auth-paket-name {
    color: var(--auth-primary);
}

.auth-paket-popular {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #78350f;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 99px;
    white-space: nowrap;
}

.auth-paket-trial {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    color: #047857;
    background: #d1fae5;
    padding: 2px 7px;
    border-radius: 99px;
    margin-bottom: 4px;
}

.auth-paket-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.auth-paket-after {
    font-size: 0.68rem;
    color: #94a3b8;
    line-height: 1.35;
}

.auth-paket-footnote {
    font-size: 0.75rem;
    color: var(--auth-muted);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    padding: 12px 14px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.auth-paket-footnote i {
    color: var(--auth-primary);
    margin-right: 4px;
}

.auth-legal {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.6;
}

.auth-legal a {
    color: var(--auth-muted);
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero-brand,
    .auth-card,
    .auth-wave-main,
    .auth-float {
        animation: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Layout Bisakasir — login / lupa password / reset (hijau)
   ═══════════════════════════════════════════════════════════════ */
.auth-layout-bisakasir {
    --auth-primary: #006d5b;
    --auth-primary-dark: #005648;
    --auth-primary-soft: rgba(0, 109, 91, 0.14);
    --auth-hero-from: #006d5b;
    --auth-hero-mid: #00796b;
    --auth-hero-to: #00897b;
    --auth-surface: #ffffff;
    background: var(--auth-hero-from);
}

.auth-body--bisakasir {
    background: var(--auth-hero-from, #006d5b);
}

.auth-layout-bisakasir .auth-mobile-frame {
    background: transparent;
}

.auth-layout-bisakasir .auth-hero {
    min-height: clamp(220px, 38dvh, 340px);
    background: var(--auth-hero-from);
    flex-shrink: 0;
}

.auth-layout-bisakasir .auth-hero-glow,
.auth-layout-bisakasir .auth-hero-deco {
    display: none;
}

.auth-hero-blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-blob--1 {
    width: 140px;
    height: 140px;
    top: -30px;
    right: -20px;
    animation: authBlobPulse 7s ease-in-out infinite;
}

.auth-blob--2 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: -25px;
    animation: authBlobPulse 8s ease-in-out infinite 1s;
}

.auth-blob--3 {
    width: 70px;
    height: 70px;
    top: 35%;
    right: 15%;
    animation: authBlobPulse 6s ease-in-out infinite 0.5s;
}

@keyframes authBlobPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}

.auth-layout-bisakasir .auth-hero-top {
    display: flex;
    justify-content: flex-end;
    padding: 8px 20px 0;
}

.auth-layout-bisakasir .auth-hero-top--end {
    justify-content: flex-end;
}

.auth-layout-bisakasir .auth-back {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    font-size: 0.75rem;
}

.auth-layout-bisakasir .auth-hero-body {
    padding: 12px 24px 32px;
    justify-content: center;
}

.auth-layout-bisakasir .auth-hero-sub:not(.auth-hero-sub--school) {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.auth-layout-bisakasir .auth-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.auth-layout-bisakasir .auth-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.auth-layout-bisakasir .auth-waves-wrap {
    display: none !important;
}

.auth-layout-bisakasir .auth-sheet {
    flex: 1;
    min-height: 0;
    margin-top: -24px;
    background: transparent;
    z-index: 10;
}

.auth-layout-bisakasir .auth-card {
    background: #fff;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.1);
    padding: 28px 24px max(28px, env(safe-area-inset-bottom));
    animation: authSheetUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes authSheetUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-layout-bisakasir .auth-page-head {
    margin-bottom: 24px;
}

.auth-layout-bisakasir .auth-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-layout-bisakasir .auth-page-accent {
    display: none;
}

.auth-layout-bisakasir .auth-page-desc {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
}

.auth-layout-bisakasir .auth-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.auth-layout-bisakasir .auth-input {
    background: #f3f4f6;
    border: 1.5px solid transparent;
    border-radius: 12px;
    min-height: 50px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.auth-layout-bisakasir .auth-input:focus {
    background: #fff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-soft);
}

.auth-layout-bisakasir .auth-input-icon {
    color: #9ca3af;
    left: 16px;
}

.auth-layout-bisakasir .auth-options-row {
    margin: 6px 0 24px;
}

.auth-layout-bisakasir .auth-forgot-inline a {
    color: var(--auth-primary);
    font-weight: 600;
}

.auth-layout-bisakasir .auth-remember {
    color: #6b7280;
}

.auth-layout-bisakasir .auth-submit {
    background: var(--auth-primary);
    border-radius: 12px;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 109, 91, 0.28);
}

.auth-layout-bisakasir .auth-submit:hover {
    background: var(--auth-primary-dark);
}

.auth-layout-bisakasir .auth-footer {
    margin-top: 22px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-layout-bisakasir .auth-footer a {
    color: var(--auth-primary);
    font-weight: 700;
}

.auth-layout-bisakasir .auth-divider {
    margin: 20px 0;
    color: #d1d5db;
    font-size: 0.75rem;
}

.auth-layout-bisakasir .auth-divider::before,
.auth-layout-bisakasir .auth-divider::after {
    background: #e5e7eb;
}

/* Tablet & desktop: frame ponsel di tengah */
@media (min-width: 640px) {
    .auth-body--bisakasir {
        background: linear-gradient(165deg, #004d40 0%, #006d5b 50%, #00897b 100%);
    }

    .auth-layout-bisakasir {
        padding: 24px;
        background: transparent;
    }

    .auth-layout-bisakasir .auth-mobile-frame {
        max-width: 420px;
        min-height: min(780px, 94dvh);
        max-height: 94dvh;
        border-radius: 32px;
        overflow: hidden;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.12),
            0 32px 64px rgba(0, 0, 0, 0.35);
        background: var(--auth-hero-from);
    }

    .auth-layout-bisakasir .auth-card {
        border-radius: 28px 28px 0 0;
    }
}

/* Desktop: tetap satu kolom (seperti app mobile) */
@media (min-width: 1024px) {
    .auth-layout-bisakasir .auth-mobile-frame {
        display: flex !important;
        flex-direction: column;
        grid-template-columns: unset !important;
        max-width: 420px;
    }

    .auth-layout-bisakasir .auth-hero {
        border-radius: 0;
        min-height: clamp(240px, 36dvh, 320px);
    }

    .auth-layout-bisakasir .auth-sheet {
        border-radius: 0;
        margin-top: -24px;
    }
}

/* Login sekolah — tetap hijau (override slug cyan) */
.auth-mobile-page--slug.auth-layout-bisakasir {
    --auth-primary: #006d5b;
    --auth-primary-dark: #005648;
    --auth-hero-from: #006d5b;
    --auth-hero-mid: #00796b;
    --auth-hero-to: #00897b;
}

@media (prefers-reduced-motion: reduce) {
    .auth-blob,
    .auth-layout-bisakasir .auth-card {
        animation: none;
    }
}
