/* CSS Khusus untuk Halaman Autentikasi Minimalis (Login / Lupa Password) */
:root {
    --bg-primary: #FCFBF4;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    
    /* WARNA UTAMA (#10b981): Dominan Tampilan & Teks Bold */
    --accent-indigo: #10b981;
    --accent-emerald: #10b981;

    /* WARNA KEDUA (#3368A0): Tombol Interaksi & Submit Button */
    --accent-secondary: #3368A0;
    --btn-primary-bg: #3368A0;

    /* WARNA PERINGATAN (#ef4444): Alert Peringatan & Error */
    --accent-pink: #d97706;
    --accent-red: #ef4444;
    --accent-danger: #ef4444;

    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(20px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Ambient Glow Backgrounds */
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
    top: -120px;
    left: -80px;
    animation: moveGlow1 20s infinite alternate;
}

.glow-2 {
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -120px;
    right: -80px;
    animation: moveGlow2 20s infinite alternate;
}

@keyframes moveGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.1); }
}

@keyframes moveGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, -60px) scale(1.1); }
}

/* Card Container Minimalis */
.login-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 26px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #10b981;
}

/* Logo / Header Minimalis Tanpa Gradient */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #10b981;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    text-decoration: none;
}

.logo i {
    color: #10b981;
    width: 22px;
    height: 22px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 400;
}

/* WARNA PERINGATAN (#ef4444): Alert Error */
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Form Controls Minimalis */
.form-group {
    margin-bottom: 14px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

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

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.input-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 9px 12px 9px 38px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.input-control:focus {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.04);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

/* Toggle visibility button */
.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

/* WARNA KEDUA (#3368A0): Button Submit Action */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #3368A0 0%, #254d77 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(51, 104, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(51, 104, 160, 0.4);
    background: linear-gradient(135deg, #285483 0%, #1e3e62 100%);
    color: #fff !important;
}

.btn-submit:active {
    transform: translateY(0);
}

.back-to-home {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-home:hover {
    color: #10b981;
}

/* System Info Banner */
.system-info {
    text-align: center;
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.system-info span.dot {
    width: 5px;
    height: 5px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px;
        border-radius: 14px;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }
    .glow-bg {
        display: none;
    }
}