/* ================================================================
   PPID DISDIKBUD PROVINSI KALIMANTAN TIMUR - LOGIN & AUTH STYLESHEET
   Modern GovTech Authentication Design System v3.0
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Base Page Styling */
body.login-page, .login-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    background: linear-gradient(135deg, #091a2b 0%, #0f2744 55%, #0284c7 100%);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 40%),
        url('../img/batik-pattern.svg');
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: auto, auto, 520px auto;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 30px 15px;
    color: #334155;
    position: relative;
    overflow-x: hidden;
}

/* Floating Ambient Orbs */
body.login-page::before {
    content: '';
    position: absolute;
    top: -120px;
    right: 15%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(2, 132, 199, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

body.login-page::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Wrapper Container */
.login-main-wrapper {
    width: 100%;
    max-width: 1040px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tombol Kembali ke Beranda */
.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 9999px;
    transition: all 0.25s ease;
    margin-bottom: 22px;
    align-self: flex-start;
}

.btn-back-home:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateX(-3px);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ================================================================
   KARTU LOGIN UTAMA
   ================================================================ */
.login-card-container {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 65px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ================================================================
   SISI KIRI: BRAND SHOWCASE & VALUE PROPOSITION
   ================================================================ */
.login-left-side, .login-left-showcase {
    background: linear-gradient(160deg, #071526 0%, #0f2b4e 65%, #034b75 100%);
    padding: 50px 42px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.login-left-showcase::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.showcase-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    backdrop-filter: blur(6px);
    color: #38bdf8;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.showcase-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.showcase-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 12px;
}

.showcase-title .highlight {
    color: #38bdf8;
}

.showcase-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* Value Props List */
.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
}

.showcase-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.feature-icon-box.amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
    color: #fbbf24;
}

.feature-icon-box.emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

.feature-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
}

.showcase-footer {
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ================================================================
   SISI KANAN: FORMULIR LOGIN MODERN
   ================================================================ */
.login-right-side, .login-right-form {
    padding: 50px 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

@media (max-width: 767.98px) {
    .login-right-side, .login-right-form {
        padding: 36px 26px;
    }
}

.form-head-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.form-head-desc {
    font-size: 0.92rem;
    color: #64748b;
    margin-bottom: 26px;
    line-height: 1.5;
}

/* Input Field Group */
.input-field-group {
    margin-bottom: 20px;
}

.input-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon-left {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.field-control {
    width: 100%;
    padding: 13px 18px 13px 44px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.25s ease;
    font-family: inherit;
}

.field-control:focus {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    outline: none;
}

.input-icon-wrapper:focus-within .field-icon-left {
    color: #0284c7;
}

/* Toggle Password Visibility */
.field-toggle-eye {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 8px;
    transition: color 0.2s ease;
    z-index: 2;
}

.field-toggle-eye:hover {
    color: #0284c7;
}

/* Form Options (Remember Me & Forgot Password) */
.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 0.88rem;
}

.custom-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
    font-weight: 500;
    user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    cursor: pointer;
    border-radius: 4px;
}

.link-forgot {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link-forgot:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Tombol Submit Modern */
.btn-login-submit, .btn-login-modern {
    width: 100%;
    padding: 13px 22px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-login-submit:hover, .btn-login-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45);
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff !important;
}

/* Register Footer Text */
.login-footer-text {
    text-align: center;
    margin-top: 26px;
    font-size: 0.9rem;
    color: #64748b;
}

.link-register, .login-footer-text a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-register:hover, .login-footer-text a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* Copyright Text */
.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    margin-top: 24px;
    line-height: 1.5;
}

/* Legacy Support for register form controls */
.form-control-modern {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    color: #1e293b;
}

.form-control-modern:focus {
    border-color: #0284c7;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    outline: none;
}