/* login-modern.css - TOTAL RESET & MODERN STYLE */

/* 1. RESET TOTAL SISTEM BAWAAN (MENGHILANGKAN BOX ABU-ABU) */
html, 
body.login-theme {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%) !important;
    grid-template-columns: none !important; /* Matikan grid screen.css */
    overflow: hidden !important; /* Mencegah scroll yang merusak layout */
    color: #fff;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif !important;
}

/* Sembunyikan paksa elemen luar sistem (Header, Nav, Footer bawaan) */
body.login-theme header.page, 
body.login-theme nav, 
body.login-theme footer,
body.login-theme header.main,
body.login-theme aside,
body.login-theme #header,
body.login-theme #footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mematikan box/warna dari elemen pembungkus bawaan screen.css */
body.login-theme main {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important; /* Menghilangkan box abu-abu sistem */
    border: none !important;
    box-shadow: none !important;
}

/* 2. LAYOUT CONTAINER */
.login-page-container {
    display: flex;
    flex-direction: column; /* Mengatur Logo di Atas Card */
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
    animation: fadeInPage 0.6s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. TOP LOGO AREA (DI ATAS CARD) */
.top-logo-area {
    margin-bottom: 30px; /* Jarak antara logo dan card */
    text-align: center;
}

.main-logo {
    max-height: 90px; /* Ukuran logo lokal umm2.png */
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8)); /* Glow agar jelas di background gelap */
}

/* 4. CARD STYLING */
.login-card {
    max-width: 450px;
    width: 90%; /* Responsif untuk mobile */
    background: #1a1a1a !important;
    border-radius: 28px;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

/* 5. TYPOGRAPHY */
.login-card h1 {
    color: #ff4d4d !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    text-align: center;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.02em;
}

.login-card .welcome {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.4;
}

.login-card .brand { 
    color: #ff4d4d; 
    font-weight: 600; 
}

/* 6. FORM INPUTS */
.input-field { 
    margin-bottom: 20px; 
    text-align: left; 
}

.input-field label { 
    display: block; 
    color: #ccc; 
    margin-bottom: 8px; 
    font-size: 0.9rem; 
}

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

.input-wrapper i { 
    position: absolute; 
    left: 18px; 
    color: #555; 
}

.input-wrapper input {
    width: 100% !important;
    padding: 15px 15px 15px 50px !important;
    background: #252525 !important;
    border: 1.5px solid #333 !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
}

.input-wrapper input:focus {
    border-color: #ff4d4d !important;
    outline: none !important;
    background: #2a2a2a !important;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.15);
}

.disabled-bg, .input-wrapper input:disabled { 
    opacity: 0.6; 
    background: #111 !important;
}

/* 7. BUTTON */
.modern-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff4d4d, #cc0000) !important;
    color: white !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    transition: 0.3s;
    text-decoration: none !important;
}

.modern-btn:hover { 
    filter: brightness(1.1); 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.4);
}

/* 8. ERROR MESSAGE */
.error-message {
    background: rgba(255, 77, 77, 0.1);
    color: #ff8a8a;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 77, 77, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 9. FOOTER AREA (DALAM CARD) */
.footer-area { 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid #333; 
}

.description { 
    color: #666; 
    font-size: 0.8rem; 
    text-align: center; 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

.footer-info { 
    text-align: center; 
    font-size: 0.8rem; 
    color: #555; 
}

.footer-links { 
    margin-top: 8px; 
    display: flex; 
    justify-content: center; 
    gap: 12px; 
}

.info-link { 
    color: #ff4d4d !important; 
    text-decoration: none; 
    font-weight: 600; 
    transition: 0.2s;
}

.info-link:hover { 
    color: #ff9999 !important; 
    text-decoration: underline; 
}

.sep { color: #333; }

/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .login-card { padding: 30px 20px; }
    .top-logo-area { margin-bottom: 20px; }
    .main-logo { max-height: 70px; }
}
