/* Halaman login BK SMKN 1 Wonorejo — CSS khusus (hanya dimuat di halaman login).
   Semua selector di-scope ke .auth-page agar tidak bocor ke halaman aplikasi. */

.auth-page *,
.auth-page *::before,
.auth-page *::after { box-sizing: border-box; }

.auth-page {
    --navy: #0b3154;
    --navy2: #0f4778;
    --blue: #1675bd;
    --cyan: #19b7f1;
    --ink: #10243a;
    --muted: #6f8195;
    --line: #dbe5ee;
    --soft: #f4f8fc;

    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #f5f9fd;
    min-height: 100vh;
}

.auth-page .page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 50% 50%;
}

/* ---------- sisi kiri: hero ---------- */
.auth-page .hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    color: #fff;
    background:
        /* scrim lembut dari bawah: menambah kontras teks kecil di area bawah
           tanpa menghilangkan transparansi sisi kiri */
        linear-gradient(180deg, rgba(4, 22, 40, 0) 42%, rgba(4, 22, 40, .58) 100%),
        linear-gradient(90deg, rgba(5, 43, 76, 0) 0%, rgba(8, 55, 94, .91) 48%, rgba(7, 40, 70, .82) 100%),
        url("../images/auth/counseling-office.jpg") center/cover no-repeat;
}
.auth-page .hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -260px;
    bottom: -250px;
    border: 1px solid rgba(72, 196, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(72, 196, 255, .035), 0 0 0 140px rgba(72, 196, 255, .025);
}
.auth-page .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 48px 48px 36px;
    display: flex;
    flex-direction: column;
    /* Karena sisi kiri gradasi kini transparan (foto terlihat), beri bayangan
       halus pada teks agar tetap terbaca di atas foto. */
    text-shadow: 0 1px 3px rgba(3, 20, 38, .72), 0 2px 18px rgba(3, 20, 38, .55);
}
.auth-page .brand { display: flex; align-items: center; gap: 12px; }
.auth-page .logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .95);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.auth-page .logo img { width: 32px; height: 32px; object-fit: contain; }
.auth-page .brand-title { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.auth-page .brand-sub { font-size: 11px; color: #9ec8e8; margin-top: 2px; }

.auth-page .hero-content {
    max-width: 650px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 55px;
}
.auth-page .kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a9def8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.auth-page .kicker::before {
    content: "";
    width: 44px;
    height: 2px;
    background: #31b9f4;
    border-radius: 4px;
}
.auth-page h1 {
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 0 0 18px;
    font-weight: 800;
}
.auth-page h1 em { color: #27baf4; font-style: normal; }
.auth-page .lead {
    color: #d5e6f5;
    max-width: 610px;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 28px;
}
.auth-page .features { display: grid; gap: 13px; }
.auth-page .feature { display: flex; gap: 12px; align-items: flex-start; }
.auth-page .feature .f-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(58, 151, 211, .20);
    border: 1px solid rgba(152, 216, 250, .14);
    font-size: 14px;
    color: #cbe9fb;
}
.auth-page .feature b { display: block; font-size: 12px; margin-bottom: 2px; }
.auth-page .feature small { display: block; color: #c8dcec; font-size: 11px; line-height: 1.45; }
.auth-page .quote {
    margin-top: 27px;
    padding-left: 14px;
    border-left: 2px solid #2aa9e6;
    font-size: 13px;
    font-style: italic;
    color: #e2f0fb;
}
.auth-page .hero-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 0;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}
.auth-page .hero-footer { font-size: 10px; color: #86b1cf; }
.auth-page .badges {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    margin: 30px -26px 18px 0;
}
.auth-page .badge {
    text-align: center;
    color: #eaf5fd;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}
.auth-page .badge .bicon { font-size: 23px; margin-bottom: 7px; color: #a5dcf7; }

/* ---------- sisi kanan: form ---------- */
.auth-page .login-side {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 35px;
    background:
        radial-gradient(circle at 70% 30%, rgba(214, 235, 250, .7), transparent 35%),
        #f5f9fd;
}
.auth-page .login-wrap { width: min(100%, 400px); }
.auth-page .card {
    display: block;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(16, 36, 58, .10);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(22, 49, 76, .10);
}
.auth-page .card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.auth-page .avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #f2f7fc;
    display: grid;
    place-items: center;
    color: #1873b7;
    flex: 0 0 38px;
}
.auth-page .card h2 { font-size: 18px; margin: 0 0 3px; letter-spacing: -.02em; font-weight: 800; }
.auth-page .card p { font-size: 11px; color: var(--muted); margin: 0; }

.auth-page label.field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    margin: 0 0 8px;
}
.auth-page label.field-label a { color: #146eb1; text-decoration: none; font-weight: 700; }
.auth-page label.field-label a:hover { text-decoration: underline; }
.auth-page .field { margin-bottom: 17px; }
.auth-page .field input {
    width: 100%;
    height: 43px;
    border: 1px solid #d6e0eb;
    border-radius: 11px;
    background: #eaf2fd;
    padding: 0 14px;
    outline: none;
    font: inherit;
    font-size: 12px;
    color: #172d43;
    transition: .2s;
}
.auth-page .field input:focus { border-color: #58a7d7; box-shadow: 0 0 0 3px rgba(23, 117, 189, .10); }
.auth-page .field input::placeholder { color: #8ba0b5; }
.auth-page .field input.is-error { border-color: #e08a8a; background: #fdf3f3; }
.auth-page .password { position: relative; }
.auth-page .password input { padding-right: 44px; }
.auth-page .password button {
    position: absolute;
    right: 7px;
    top: 6px;
    border: 0;
    background: transparent;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    cursor: pointer;
    color: #60778e;
    display: grid;
    place-items: center;
}
.auth-page .password button:hover { background: #dceaf8; color: #1873b7; }
.auth-page .remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #687b8e;
    margin: 1px 0 17px;
    cursor: pointer;
    font-weight: 500;
}
.auth-page .remember input { width: 15px; height: 15px; margin: 0; accent-color: #1975ba; }
.auth-page .submit {
    width: 100%;
    height: 43px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #1675bd;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(22, 117, 189, .18);
    transition: .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-page .submit:hover { background: #1167a8; transform: translateY(-1px); }
.auth-page .submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.auth-page .alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.5;
}
.auth-page .alert-error { background: #fdf0f0; border: 1px solid rgba(190, 60, 60, .22); color: #8c2c2c; }
.auth-page .alert-success { background: #f0fbf4; border: 1px solid rgba(22, 140, 74, .22); color: #1c6b41; }
.auth-page .alert b { display: block; font-size: 11.5px; }
.auth-page .field-error { margin-top: 6px; font-size: 10.5px; color: #a33; font-weight: 600; }
.auth-page .caps-warning { margin-top: 6px; font-size: 10.5px; color: #a3690f; font-weight: 600; }

.auth-page .notice {
    margin-top: 19px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #f6f9fc;
    color: #708398;
    font-size: 10px;
    line-height: 1.55;
}
.auth-page .notice b { color: #243f58; }
.auth-page .copyright { text-align: center; color: #8b9aac; font-size: 9px; margin-top: 20px; }

@media (max-width: 900px) {
    .auth-page .page { grid-template-columns: 1fr; }
    .auth-page .hero { min-height: auto; }
    .auth-page .hero-inner { min-height: 560px; }
    .auth-page .login-side { min-height: 480px; padding: 28px 20px 40px; }
}
@media (max-width: 560px) {
    .auth-page .hero-inner { padding: 30px 25px; }
    .auth-page .hero-content { padding-top: 40px; }
    .auth-page h1 { font-size: 34px; }
    .auth-page .hero-bottom { margin-top: 0; }
    .auth-page .badges { gap: 18px; margin: 22px -12px 14px 0; }
    .auth-page .badges { display: none; }
    .auth-page .login-side { padding: 22px; }
    .auth-page .card { padding: 23px; }
}
