/* =============================================
   ADMIN LOGIN - Premium Dark Green + Neon Glass UI
   ============================================= */

/* Import shared theme variables */
@import url('theme.css');

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

/* Neon glow animation keyframes */
@keyframes neonPulse {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(13, 168, 13, 0.3),
            0 0 20px rgba(13, 168, 13, 0.2),
            0 0 40px rgba(13, 168, 13, 0.1),
            0 20px 50px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 
            0 0 10px rgba(46, 204, 113, 0.5),
            0 0 30px rgba(46, 204, 113, 0.3),
            0 0 60px rgba(46, 204, 113, 0.2),
            0 20px 50px rgba(0, 0, 0, 0.2);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(13, 168, 13, 0.3);
    }
    50% {
        border-color: rgba(46, 204, 113, 0.6);
    }
}

@keyframes floatUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

body {
    min-height: 100vh;
    font-family: var(--font-family, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
    background: linear-gradient(160deg, #021a02 0%, #053005 25%, #064d06 50%, #0a5c0a 75%, #053005 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* Animated background pattern */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(46, 204, 113, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(13, 168, 13, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 60%);
    animation: floatUp 8s ease-in-out infinite;
    pointer-events: none;
}

/* Floating particles effect */
body::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(46, 204, 113, 0.4), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(13, 168, 13, 0.3), transparent),
        radial-gradient(2px 2px at 60% 20%, rgba(46, 204, 113, 0.3), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 70% 40%, rgba(255, 255, 255, 0.15), transparent);
    background-size: 100% 100%;
    animation: floatUp 12s ease-in-out infinite reverse;
    pointer-events: none;
    opacity: 0.8;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium glassmorphism card with neon animation */
.login-box {
    width: 100%;
    padding: 40px 36px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 255, 248, 0.92));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(13, 168, 13, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: neonPulse 3s ease-in-out infinite, borderGlow 3s ease-in-out infinite;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

/* Inner glow overlay */
.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(13, 168, 13, 0.6), 
        rgba(46, 204, 113, 0.8), 
        rgba(13, 168, 13, 0.6), 
        transparent);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

/* Bottom accent line */
.login-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(46, 204, 113, 0.5), 
        transparent);
    border-radius: 2px;
}

.login-box:hover {
    transform: translateY(-8px) scale(1.01);
    animation: none;
    box-shadow: 
        0 0 15px rgba(46, 204, 113, 0.5),
        0 0 40px rgba(46, 204, 113, 0.3),
        0 0 80px rgba(46, 204, 113, 0.15),
        0 25px 60px rgba(0, 0, 0, 0.25);
    border-color: rgba(46, 204, 113, 0.7);
}

.logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transition: transform 300ms ease, filter 300ms ease;
}

.login-box:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(13, 168, 13, 0.3));
}

.login-box h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #053005;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.login-box .subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a7a5a;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    font-size: 1rem;
    font-weight: 500;
    color: #1a2e1a;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: all 250ms ease;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: #8a9a8a;
    font-weight: 400;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    border-color: #0da80d;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(13, 168, 13, 0.15),
        0 0 20px rgba(13, 168, 13, 0.1);
}

/* Premium login button with glow */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    margin-top: 8px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #0da80d 0%, #2ecc71 50%, #0da80d 100%);
    background-size: 200% 200%;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 
        0 4px 15px rgba(13, 168, 13, 0.4),
        0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 250ms ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 500ms ease;
}

.login-btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 
        0 0 20px rgba(46, 204, 113, 0.6),
        0 0 40px rgba(46, 204, 113, 0.3),
        0 8px 25px rgba(13, 168, 13, 0.4);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 0 10px rgba(46, 204, 113, 0.4),
        0 4px 15px rgba(13, 168, 13, 0.3);
}

.links {
    margin-top: 24px;
}

.links p {
    margin: 0;
}

.links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2ecc71;
    text-decoration: none;
    position: relative;
    transition: color 200ms ease;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0da80d, #2ecc71);
    transition: width 250ms ease;
}

.links a:hover {
    color: #0da80d;
}

.links a:hover::after {
    width: 100%;
}

/* Flash messages */
.message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    border-left: 4px solid transparent;
    backdrop-filter: blur(4px);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
    color: #b91c1c;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: #10b981;
    color: #047857;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo {
        width: 80px;
    }

    .login-box h2 {
        font-size: 1.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 12px 14px;
    }

    .login-btn {
        padding: 12px 18px;
        font-size: 1rem;
    }
}