/* =========================================================
   LOGIN STAFF & PORTAL ORANG TUA — selaras dengan beranda
   Mandiri (tidak memuat style.css).
   ========================================================= */
.auth-page {
    --acc: #1356E6; --acc2: #0A3DB8; --soft: #EAF2FF; --accsh: rgba(19, 86, 230, .32);
    margin: 0; min-height: 100vh; display: grid; place-items: center; padding: clamp(14px, 3vw, 40px);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; color: #263D67;
    background: #a9e2fb url(../img/hero-sekolah.webp) center top / cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
}
.auth-ortu { --acc: #FC2F8D; --acc2: #E71B78; --soft: #FEECF4; --accsh: rgba(252, 47, 141, .34); }
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page :is(h1, h2, p) { margin: 0; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page :focus-visible { outline: 3px solid #1356E6; outline-offset: 3px; border-radius: 10px; }
.ic { width: 1em; height: 1em; flex: none; fill: var(--f, none); stroke: var(--s, currentColor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-wa { fill: currentColor; stroke: none; }
.k { fill: none; stroke: #fff; }

.auth-card { width: 100%; max-width: 1120px; min-height: min(680px, calc(100vh - 80px)); display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border-radius: 40px; overflow: hidden; box-shadow: 0 40px 90px rgba(4, 46, 119, .25); }

/* ---- panel kiri ---- */
.auth-brand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); background: #a9e2fb url(../img/hero-sekolah.webp) 66% top / cover no-repeat; }
.auth-brand::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .5) 42%, rgba(255, 255, 255, 0) 72%); }
.auth-brand-top a { display: inline-flex; padding: 8px 16px; background: #fff; border-radius: 18px; box-shadow: 0 10px 24px rgba(4, 46, 119, .12); }
.auth-brand-top img { height: 46px; width: auto; }
.auth-brand-mid { margin-top: clamp(18px, 3vw, 36px); max-width: 430px; }
.auth-brand-mid .chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--acc2); font: 600 12.5px/1.2 'Poppins', sans-serif; }
.auth-brand-mid h2 { font: 800 clamp(25px, 2.6vw, 36px)/1.12 'Baloo 2', 'Poppins', sans-serif; color: #043687; letter-spacing: -.01em; }
.auth-brand-mid h2 span { color: #FC2F8D; }
.auth-brand-mid p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: #263D67; }
.auth-brand-kids { margin-top: auto; padding-top: 12px; display: flex; justify-content: center; }
.auth-brand-kids img { width: min(88%, 430px); height: auto; margin-bottom: -6px; filter: drop-shadow(0 18px 18px rgba(4, 46, 119, .12)); animation: auth-bob 7s ease-in-out infinite; }
@keyframes auth-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.auth-brand-bottom { position: absolute; left: clamp(24px, 3vw, 40px); bottom: clamp(16px, 2vw, 24px); z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: 12.5px; color: #263D67; box-shadow: 0 8px 20px rgba(4, 46, 119, .12); }
.auth-brand-bottom .ic { font-size: 16px; color: #1FA855; }
.auth-brand-bottom a { font-weight: 600; color: #0C4FC0; text-decoration: underline; text-underline-offset: 2px; }

/* ---- panel kanan ---- */
.auth-form-panel { display: grid; place-items: center; padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px); background: radial-gradient(90% 60% at 100% 0, var(--soft), #fff 62%); }
.auth-form-box { width: 100%; max-width: 410px; }
.auth-badge { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 20px; background: linear-gradient(145deg, var(--acc), var(--acc2)); color: #fff; font-size: 28px; box-shadow: 0 14px 28px var(--accsh); }
.auth-form-box h1 { font: 800 clamp(28px, 2.8vw, 36px)/1.1 'Baloo 2', 'Poppins', sans-serif; color: #043687; }
.auth-form-box .subtitle { margin: 6px 0 22px; font-size: 14.5px; color: #5D6F8D; }

.auth-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; }
.auth-alert .ic { margin-top: 2px; font-size: 18px; }
.auth-alert.error { background: #FFF0F3; color: #B0123E; border: 1px solid #FFC9D6; }
.auth-alert.success { background: #E8FAF0; color: #137A45; border: 1px solid #B6EBCF; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: #072268; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .ico-left { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font-size: 20px; color: #8AA0C6; pointer-events: none; transition: color .2s; }
.auth-input-wrap input { width: 100%; height: 54px; padding: 0 52px 0 48px; border: 1.5px solid #D6E3F6; border-radius: 18px; background: #fff; font: 500 15px 'Poppins', sans-serif; color: #072268; transition: border-color .2s, box-shadow .2s; }
.auth-input-wrap input::placeholder { color: #A7B5CE; font-weight: 400; }
.auth-input-wrap input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--soft); }
.auth-input-wrap:focus-within .ico-left { color: var(--acc); }
.btn-toggle-pw { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #7C90B3; font-size: 20px; cursor: pointer; }
.btn-toggle-pw:hover { background: var(--soft); color: var(--acc2); }

.auth-submit { width: 100%; height: 56px; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--acc), var(--acc2)); color: #fff; font: 600 16px 'Poppins', sans-serif; cursor: pointer; box-shadow: 0 14px 28px var(--accsh); transition: transform .2s, box-shadow .2s; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 34px var(--accsh); }
.auth-submit .ic { font-size: 20px; }

.auth-info { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 16px; background: var(--soft); font-size: 12.5px; line-height: 1.6; color: #3B4F78; }
.auth-info .ic { margin-top: 3px; font-size: 16px; color: var(--acc2); }
.auth-back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 14px; color: #0C4FC0; }
.auth-back-link:hover { text-decoration: underline; }

@media (max-width: 880px) {
    .auth-page { place-items: start center; background-attachment: scroll; }
    .auth-card { grid-template-columns: 1fr; min-height: 0; border-radius: 30px; }
    .auth-brand { padding-bottom: 0; }
    .auth-brand-mid { max-width: none; }
    .auth-brand-kids img { width: min(70%, 300px); }
    .auth-brand-bottom { display: none; }
    .auth-brand::before { background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .45) 60%, rgba(255, 255, 255, .1)); }
}
@media (max-width: 480px) {
    .auth-brand-top img { height: 40px; }
    .auth-brand-mid p { display: none; }
    .auth-brand-kids img { width: min(60%, 220px); }
}
@media (prefers-reduced-motion: reduce) { .auth-brand-kids img { animation: none; } }
