/**
 * LPK Core - Login & Authentication Styles
 * Versi 1.8.4
 *
 * Tampilan login & lost password terpusat (centered card) yang bersih, profesional,
 * dan ber-branding mewah untuk seluruh pengguna LPK (Pemilik, Admin, Sensei, Siswa).
 */

:root {
    --lpk-login-ink: #0e2233;
    --lpk-login-deep: #0f2e2a;
    --lpk-login-deep-hover: #143e39;
    --lpk-login-gold: #c9a83e;
    --lpk-login-gold-soft: #e0c25a;
    --lpk-login-cream: #faf7f0;
    --lpk-login-line: #e4ddd0;
    --lpk-login-muted: #6d7680;
    --lpk-login-error: #b3261e;
    --lpk-login-success: #15803d;
    --lpk-login-info: #0284c7;
    --lpk-login-radius: 18px;
    --lpk-login-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
    --lpk-login-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Overlay full-screen: menutupi chrome tema agar tampilan benar-benar bersih. */
.lpk-login-screen {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(201, 168, 62, 0.12), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(15, 46, 42, 0.18), transparent 55%),
        #f5f2eb;
    font-family: var(--lpk-login-sans);
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

.lpk-login-shell {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: #ffffff;
    border-radius: var(--lpk-login-radius);
    border: 1px solid rgba(228, 221, 208, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 24px 60px -20px rgba(14, 34, 51, 0.28),
        0 10px 24px -16px rgba(14, 34, 51, 0.18);
    overflow: hidden;
    animation: lpk-rise 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lpk-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============ Panel Form / Card ============ */
.lpk-login-card {
    padding: 44px 38px 36px;
    background: #ffffff;
}

.lpk-login-card__inner {
    width: 100%;
}

/* Header & Branding Terpusat */
.lpk-login-card__brand {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lpk-login-card__logo {
    max-width: 88px;
    max-height: 88px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

.lpk-login-card__mark {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lpk-login-serif);
    font-size: 26px;
    font-weight: 700;
    color: #0f2e2a;
    background: linear-gradient(150deg, var(--lpk-login-gold-soft), var(--lpk-login-gold));
    box-shadow: 0 8px 20px -6px rgba(201, 168, 62, 0.6);
    margin-bottom: 12px;
}

.lpk-login-card__brand-title {
    font-family: var(--lpk-login-serif);
    font-size: 23px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--lpk-login-deep);
    margin: 0 0 4px;
    letter-spacing: -0.2px;
    text-align: center;
}

.lpk-login-card__brand-tagline {
    font-size: 13px;
    color: var(--lpk-login-muted);
    margin: 0;
    line-height: 1.45;
    text-align: center;
}

.lpk-login-card__title {
    font-family: var(--lpk-login-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--lpk-login-ink);
    margin: 18px 0 6px;
    text-align: center;
}

.lpk-login-card__subtitle {
    font-size: 13.5px;
    color: var(--lpk-login-muted);
    margin: 0 0 22px;
    line-height: 1.5;
    text-align: center;
}

/* Alert Notifikasi */
.lpk-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.45;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.lpk-login-alert--error {
    background: #fdf2f2;
    color: var(--lpk-login-error);
    border: 1px solid #f9d2d2;
}

.lpk-login-alert--success {
    background: #f0fdf4;
    color: var(--lpk-login-success);
    border: 1px solid #bbf7d0;
}

.lpk-login-alert--info {
    background: #f0f9ff;
    color: var(--lpk-login-info);
    border: 1px solid #bae6fd;
}

.lpk-login-alert .dashicons {
    font-size: 19px;
    width: 19px;
    height: 19px;
    flex: none;
    margin-top: 1px;
}

/* Kolom Form */
.lpk-field {
    margin-bottom: 16px;
}

.lpk-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lpk-login-ink);
    margin-bottom: 7px;
}

.lpk-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 14.5px;
    color: var(--lpk-login-ink);
    background: #fbfaf7;
    border: 1.5px solid var(--lpk-login-line);
    border-radius: 11px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lpk-input:focus {
    border-color: var(--lpk-login-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201, 168, 62, 0.16);
}

.lpk-input-wrap {
    position: relative;
}

.lpk-toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--lpk-login-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: color 140ms ease, background 140ms ease;
}

.lpk-toggle-pass:hover { color: var(--lpk-login-ink); background: rgba(14, 34, 51, 0.05); }
.lpk-toggle-pass.is-visible { color: var(--lpk-login-gold); }
.lpk-toggle-pass .dashicons { font-size: 18px; width: 18px; height: 18px; }

.lpk-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 13.5px;
}

.lpk-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--lpk-login-muted);
    cursor: pointer;
    user-select: none;
}

.lpk-checkbox input { accent-color: var(--lpk-login-deep); width: 15px; height: 15px; }

.lpk-login-link {
    color: var(--lpk-login-deep);
    text-decoration: none;
    font-weight: 600;
}
.lpk-login-link:hover { color: var(--lpk-login-gold); text-decoration: underline; }

.lpk-login-submit {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0f2e2a;
    background: linear-gradient(150deg, var(--lpk-login-gold-soft), var(--lpk-login-gold));
    border: none;
    border-radius: 11px;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
    box-shadow: 0 10px 22px -10px rgba(201, 168, 62, 0.85);
}

.lpk-login-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 26px -10px rgba(201, 168, 62, 0.92);
}
.lpk-login-submit:active { transform: translateY(0); }

/* Tombol Kembali / Navigasi Pembantu */
.lpk-login-back {
    margin-top: 20px;
    text-align: center;
}

.lpk-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--lpk-login-deep);
    text-decoration: none;
    transition: color 150ms ease;
}

.lpk-back-link:hover {
    color: var(--lpk-login-gold);
    text-decoration: underline;
}

.lpk-login-card__footer {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: var(--lpk-login-muted);
    opacity: 0.8;
}

/* ============ Responsif ============ */
@media (max-width: 480px) {
    .lpk-login-screen {
        padding: 12px;
        align-items: flex-start;
    }
    .lpk-login-shell {
        border-radius: 14px;
        box-shadow: 0 8px 24px -10px rgba(14, 34, 51, 0.2);
    }
    .lpk-login-card {
        padding: 32px 22px 28px;
    }
    .lpk-login-card__brand-title {
        font-size: 21px;
    }
    .lpk-login-card__title {
        font-size: 18.5px;
    }
}

/* Hormati preferensi gerakan minimal. */
@media (prefers-reduced-motion: reduce) {
    .lpk-login-shell,
    .lpk-login-card__inner { animation: none; }
}
