/* ============================================
   Login Page Styles – Sistem Pemadam Api
   ============================================ */

:root {
    --primary-gradient: linear-gradient(135deg, #00b4d8, #009688);
    --accent-gradient: linear-gradient(135deg, #66ffb9, #00bfa5);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    background: linear-gradient(-45deg, #00b4d8, #4dd0e1, #66ffb9, #009688, #00695c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', 'Outfit', sans-serif;
}

/* --- Animations --- */

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseCustom {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- Login Container & Card --- */

.login-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

.login-card:hover {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* --- Header --- */

.login-header {
    background: var(--primary-gradient);
    padding: 50px 30px;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--glass-bg);
    border-radius: 50%;
    z-index: -1;
}

/* --- Logo --- */

.logo-wrapper {
    background: white;
    display: inline-flex;
    width: 90px;
    height: 90px;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    animation: pulseCustom 2s infinite;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: rotate(10deg) scale(1.05);
}

/* --- Form Controls --- */

.form-control-modern {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 2px solid transparent !important;
    border-radius: 16px !important;
    padding: 12px 20px 12px 45px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    background: white !important;
    border-color: #00b4d8 !important;
    box-shadow: 0 8px 15px rgba(0, 180, 216, 0.1) !important;
    transform: translateY(-2px) scale(1.02);
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00b4d8;
    z-index: 10;
    font-size: 1.1rem;
}

/* --- Button --- */

.btn-premium {
    background: var(--primary-gradient);
    border: none;
    border-radius: 18px;
    padding: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.4);
    color: white;
    background: linear-gradient(135deg, #009688, #00b4d8);
}

.btn-premium:active {
    transform: translateY(-1px);
}

/* --- Footer --- */

.card-footer-clean {
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 20px;
}

.version-badge {
    background: rgba(0, 180, 216, 0.1);
    color: #009688;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --- Alerts --- */

.alert-modern {
    border-radius: 16px;
    border: none;
    padding: 15px 20px;
    font-size: 0.85rem;
}

/* --- Particles --- */

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Remember Me & Forgot Password --- */

.form-check-input:checked {
    background-color: #009688;
    border-color: #009688;
}

#forgotLink {
    color: #009688;
    transition: color 0.3s ease;
}

#forgotLink:hover {
    color: #00b4d8;
    text-decoration: underline !important;
}

/* --- Responsive --- */

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    .login-header {
        padding: 35px 20px;
    }
    .logo-wrapper {
        width: 70px;
        height: 70px;
    }
}
