/* =========================================================
   LOGIN STAFF (Guru & Superadmin) — split panel dinamis
   Memakai variabel warna & font yang sama dari style.css
   ========================================================= */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
}

/* ---------------- PANEL KIRI: BRANDING ---------------- */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 4vw, 56px);
    background: linear-gradient(155deg, #1B5FC1 0%, #2F80ED 55%, #56A5F5 100%);
    color: #fff;
}

.auth-brand-top { position: relative; z-index: 2; }
.auth-brand-top a { display: inline-flex; align-items: center; gap: 10px; }
.auth-brand-top img { height: 40px; width: auto; }
.auth-brand-top .txt { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.25; }

.auth-brand-mid { position: relative; z-index: 2; max-width: 420px; }
.auth-brand-mid h2 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 0 0 14px;
}
.auth-brand-mid p { font-size: 14.5px; line-height: 1.7; opacity: .92; margin: 0; }

.auth-brand-mask {
    position: absolute; right: clamp(-10px, 2vw, 30px); bottom: 0;
    width: clamp(140px, 22vw, 230px);
    filter: drop-shadow(0 14px 20px rgba(10, 40, 90, .28));
    animation: lp-float 5s ease-in-out infinite;
    z-index: 1;
}

.auth-brand-bottom {
    position: relative; z-index: 2; font-size: 12.5px; opacity: .85;
    display: flex; align-items: center; gap: 8px;
}

/* Titik dekoratif melayang, senada dengan hero landing page */
.auth-dot { position: absolute; border-radius: 50%; background: rgba(255,255,255,.28); animation: lp-float 6s ease-in-out infinite; }
.auth-dot.d1 { width: 70px; height: 70px; top: 10%; left: -20px; }
.auth-dot.d2 { width: 22px; height: 22px; top: 22%; right: 18%; animation-delay: -2s; }
.auth-dot.d3 { width: 14px; height: 14px; bottom: 30%; left: 30%; animation-delay: -3.4s; }
.auth-dot.d4 { width: 110px; height: 110px; bottom: -50px; right: -40px; background: rgba(255,255,255,.14); }

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ---------------- PANEL KANAN: FORM ---------------- */
.auth-form-panel {
    display: flex; align-items: center; justify-content: center;
    padding: clamp(24px, 5vw, 56px);
}

.auth-form-box { width: 100%; max-width: 380px; }
.auth-form-box h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(22px, 2.4vw, 27px); margin: 0 0 6px; color: #1F2937;
}
.auth-form-box p.subtitle { color: var(--color-text-muted); font-size: 13.5px; margin: 0 0 26px; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: #33475F; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .ico-left {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 16px; opacity: .55; pointer-events: none;
}
.auth-input-wrap input {
    width: 100%; padding: 12px 14px 12px 42px; border-radius: 12px;
    border: 1.5px solid var(--color-border); font-size: 14.5px;
    transition: border-color .2s ease, box-shadow .2s ease;
    background: #F9FBFF;
}
.auth-input-wrap input:focus {
    outline: none; border-color: var(--color-primary); background: #fff;
    box-shadow: 0 0 0 4px rgba(47,128,237,.12);
}
.auth-input-wrap .btn-toggle-pw {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 15px;
    padding: 8px; color: var(--color-text-muted); line-height: 1;
}
.auth-input-wrap .btn-toggle-pw:hover { color: var(--color-primary); }

.auth-submit {
    width: 100%; border: none; cursor: pointer; margin-top: 6px;
    background: linear-gradient(135deg, #3D8FF5, #1B6FD8); color: #fff;
    padding: 13px; border-radius: 12px; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 22px rgba(47,128,237,.32);
    transition: transform .2s ease, box-shadow .2s ease;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(47,128,237,.4); }
.auth-submit:active { transform: translateY(0); }

.auth-alert {
    padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px;
    display: flex; align-items: flex-start; gap: 8px;
}
.auth-alert.error { background: #FDEDED; color: #C0392B; }
.auth-alert.success { background: #E6F7ED; color: #1E7A46; }

.auth-demo {
    margin-top: 22px; font-size: 12px; color: var(--color-text-muted);
    background: #F7FAFF; border: 1px dashed #C9DCF7; border-radius: 12px; padding: 12px 14px; line-height: 1.7;
}
.auth-demo code { background: #E8F1FD; padding: 1px 6px; border-radius: 5px; color: #1B5FC1; font-weight: 600; }

.auth-back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font-size: 13px; color: var(--color-text-muted); }
.auth-back-link:hover { color: var(--color-primary); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 880px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 220px; padding: 22px clamp(20px, 5vw, 40px); }
    .auth-brand-mid { max-width: none; }
    .auth-brand-mid h2 { font-size: 20px; }
    .auth-brand-mid p { display: none; }
    .auth-brand-mask { display: none; }
    .auth-brand-bottom { display: none; }
    .auth-form-panel { padding: 30px clamp(20px, 6vw, 40px) 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-brand-mask, .auth-dot { animation: none; }
}