/* ============================================
   login-modern.css - FULL VERSION
   Modern Login Style untuk EduVPN UMM
   ============================================ */

/* ============================================
   1. RESET TOTAL SISTEM BAWAAN
   ============================================ */
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;
    overflow: hidden !important;
    color: #fff !important;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif !important;
}

/* Sembunyikan paksa elemen luar sistem */
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 */
body.login-theme main {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 100vh !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
}

/* ============================================
   2. VIDEO BACKGROUND (LOKAL - bg-umm.mp4)
   ============================================ */
.video-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

.video-background video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    filter: blur(12px) brightness(0.5) saturate(0.8) !important;
    -webkit-filter: blur(12px) brightness(0.5) saturate(0.8) !important;
}

/* Fallback jika video tidak support */
.video-background img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    filter: blur(12px) brightness(0.5) saturate(0.8) !important;
}

.overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    z-index: 1 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* ============================================
   3. LAYOUT CONTAINER
   ============================================ */
.login-page-container {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    animation: fadeInPage 0.6s ease-out !important;
}

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

/* ============================================
   4. TOP LOGO AREA
   ============================================ */
.top-logo-area {
    margin-bottom: 30px !important;
    text-align: center !important;
}

.main-logo {
    max-height: 100px !important;
    width: auto !important;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8)) !important;
    transition: transform 0.3s ease !important;
}

.main-logo:hover {
    transform: scale(1.05) !important;
}

/* ============================================
   5. CARD STYLING (GLASSMORPHISM)
   ============================================ */
.login-card {
    max-width: 450px !important;
    width: 90% !important;
    background: rgba(26, 26, 26, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 32px !important;
    padding: 2.8rem 2.2rem 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease !important;
}

.login-card:hover {
    transform: translateY(-4px) scale(1.005) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ============================================
   6. TYPOGRAPHY
   ============================================ */
.login-card h3 {
    color: #ffffff !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    letter-spacing: -0.02em !important;
}

.login-card .welcome {
    text-align: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 30px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.login-card .brand {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
}

/* ============================================
   7. ERROR MESSAGE
   ============================================ */
.error-message {
    background: rgba(239, 68, 68, 0.15) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    border-radius: 16px !important;
    padding: 0.9rem 1.2rem !important;
    margin-bottom: 1.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    color: #fca5a5 !important;
    font-size: 0.9rem !important;
    animation: slideDown 0.4s ease !important;
}

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

.error-message i {
    font-size: 1.1rem !important;
    color: #ef4444 !important;
}

/* ============================================
   8. FORM INPUTS
   ============================================ */
.input-field {
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

.input-field label {
    display: block !important;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
}

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

.input-wrapper i {
    position: absolute !important;
    left: 18px !important;
    color: rgba(255, 255, 255, 0.2) !important;
    font-size: 0.95rem !important;
    transition: color 0.3s ease !important;
}

.input-wrapper:focus-within i {
    color: #3b82f6 !important;
}

.input-wrapper input {
    width: 100% !important;
    padding: 15px 15px 15px 50px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif !important;
}

.input-wrapper input:focus {
    border-color: rgba(59, 130, 246, 0.5) !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.06) !important;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
    font-weight: 400 !important;
}

.input-wrapper input:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ============================================
   9. BUTTON
   ============================================ */
.modern-btn {
    width: 100% !important;
    padding: 16px !important;
    background: linear-gradient(135deg, #f63b3b, #f16363) !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.modern-btn:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 12px 32px -8px rgba(246, 59, 59, 0.5) !important;
    filter: brightness(1.05) !important;
}

.modern-btn:active {
    transform: scale(0.97) translateY(0) !important;
}

/* Shimmer effect */
.modern-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.6s ease !important;
}

.modern-btn:hover::before {
    left: 100% !important;
}

/* ============================================
   10. BUTTON STATES (Loading, Success, Error)
   ============================================ */
.modern-btn.loading .btn-content {
    animation: pulseText 1s ease infinite !important;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.modern-btn.loading .btn-spinner {
    display: inline-block !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modern-btn.success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 8px 24px -6px rgba(34, 197, 94, 0.4) !important;
}

.modern-btn.success .btn-content i {
    animation: bounceCheck 0.6s ease !important;
}

@keyframes bounceCheck {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.modern-btn.error {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 8px 24px -6px rgba(239, 68, 68, 0.4) !important;
    animation: shake 0.5s ease !important;
}

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

/* ============================================
   11. TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    color: white !important;
    transform: translateX(120%) !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease !important;
    opacity: 0 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4) !important;
}

.toast.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.toast.success {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #86efac !important;
}

.toast.error {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.toast .toast-icon {
    margin-right: 10px !important;
    font-size: 1.1rem !important;
}

/* ============================================
   12. FOOTER AREA
   ============================================ */
.footer-area {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer-info {
    text-align: center !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

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

.info-link {
    color: rgba(255, 255, 255, 0.4) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s !important;
    font-size: 0.75rem !important;
}

.info-link:hover {
    color: #3b82f6 !important;
    text-decoration: none !important;
}

.sep {
    color: rgba(255, 255, 255, 0.15) !important;
}

/* ============================================
   13. RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem 1.8rem !important;
        border-radius: 28px !important;
    }
    
    .login-card h3 {
        font-size: 1.6rem !important;
    }
    
    .top-logo-area {
        margin-bottom: 20px !important;
    }
    
    .main-logo {
        max-height: 70px !important;
    }
    
    .toast {
        top: 20px !important;
        right: 20px !important;
        left: 20px !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
    
    .footer-links {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }
    
    .sep {
        display: none !important;
    }
}

/* ============================================
   14. SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
}

/* ============================================
   15. EXTRA - ANIMATION FOR CARD SHAKE
   ============================================ */
@keyframes shakeCard {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    50% { transform: translateX(-6px); }
    70% { transform: translateX(6px); }
    90% { transform: translateX(-3px); }
}

.login-card.shake {
    animation: shakeCard 0.6s ease !important;
}

/* ============================================
   16. EXTRA - FOCUS RING GLOBAL
   ============================================ */
*:focus-visible {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
}

/* ============================================
   17. EXTRA - LOADING OVERLAY (Opsional)
   ============================================ */
.loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
}

.loading-overlay.show {
    display: flex !important;
}

.loading-overlay .spinner {
    width: 50px !important;
    height: 50px !important;
    border: 4px solid rgba(255, 255, 255, 0.1) !important;
    border-top-color: #3b82f6 !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}