/* 9240 Retro Wave Admin Login Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', monospace;
    background: #0a0a2a;
    color: #00ffcc;
    overflow: hidden;
    min-height: 100vh;
}

/* CRT Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.3)
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    animation: scanlineMove 0.15s linear infinite;
}

@keyframes scanlineMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* Glow Overlay */
.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,204,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 998;
}

/* Retro Wave Animations */
.bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background-image:
        linear-gradient(rgba(0,255,204,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,204,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 500px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(-50%, -50%) rotateX(60deg); }
    100% { transform: translate(-50%, -100%) rotateX(60deg); }
}

.radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,255,204,0.05) 0%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

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

/* Login Page Layout */
.login-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    position: relative;
}

.logo-wrapper {
    position: relative;
}

.retro-logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0,255,204,0.8);
    animation: logoPulse 2s ease-in-out infinite;
}

.retro-logo span:first-child {
    color: #ff00cc;
    text-shadow: 0 0 10px rgba(255,0,204,0.8);
}

.retro-logo span:last-child {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255,255,0,0.8);
}

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(0,255,204,0.8); }
    50% { text-shadow: 0 0 20px rgba(0,255,204,1); }
}

.login-nav {
    position: absolute;
    right: 0;
}

.nav-back {
    font-family: 'VT323', monospace;
    font-size: 24px;
    color: #00ffcc;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #00ffcc;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0,255,204,0.3);
}

.nav-back:hover {
    background: rgba(0,255,204,0.2);
    box-shadow: 0 0 20px rgba(0,255,204,0.6);
    transform: translateX(-10px);
}

/* Login Container */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: rgba(10, 10, 42, 0.95);
    border: 3px solid #00ffcc;
    border-radius: 20px;
    padding: 60px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 40px rgba(0,255,204,0.2);
    animation: boxEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes boxEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-header-box {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.login-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 32px;
    color: #ff00cc;
    text-shadow: 3px 3px 0 #00ffcc;
    margin-bottom: 15px;
    animation: glitchTitle 3s infinite;
}

@keyframes glitchTitle {
    0%, 96%, 100% { text-shadow: 3px 3px 0 #00ffcc; }
    97% { text-shadow: 5px 5px 0 #00ffcc; transform: skewX(-2deg); }
    98% { text-shadow: -3px -3px 0 #00ffcc; transform: skewX(2deg); }
}

.login-subtitle {
    font-size: 20px;
    color: #ffff00;
    text-shadow: 0 0 5px rgba(255,255,0,0.5);
}

.scan-line-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    animation: scanLine 1.5s infinite linear;
}

@keyframes scanLine {
    0% { top: -4px; }
    100% { top: 100%; }
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    position: relative;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: #00ffcc;
    font-size: 20px;
    font-family: 'VT323', monospace;
}

.input-label .icon {
    font-size: 28px;
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.input-field {
    width: 100%;
    padding: 18px 20px;
    font-family: 'VT323', monospace;
    font-size: 24px;
    background: rgba(0,0,0,0.7);
    border: 2px solid #00ffcc;
    color: #fff;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    position: relative;
}

.input-field::placeholder {
    color: rgba(0,255,204,0.4);
}

.input-field:hover {
    border-color: #ff00cc;
    box-shadow: 0 0 15px rgba(255,0,204,0.3);
}

.input-field:focus {
    border-color: #ff00cc;
    box-shadow: 0 0 25px rgba(255,0,204,0.5);
    transform: scale(1.02);
}

.input-highlight {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffcc, #ff00cc);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.input-group:hover .input-highlight {
    opacity: 0.5;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 18px;
    color: #00ffcc;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #00ffcc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkmark svg {
    width: 16px;
    height: 16px;
    stroke: #00ffcc;
    transform: scale(0);
    transition: transform 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: rgba(0,255,204,0.2);
}

.checkbox-label input:checked + .checkmark svg {
    transform: scale(1);
}

.forgot-link {
    color: #ffff00;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #ff00cc;
    text-shadow: 0 0 10px rgba(255,0,204,0.5);
}

.btn-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #00ffcc;
    background: rgba(0,0,0,0.8);
    border: 3px solid #00ffcc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

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

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

.btn-login:hover {
    background: rgba(0,255,204,0.2);
    border-color: #ff00cc;
    box-shadow: 0 0 30px rgba(255,0,204,0.4);
    transform: translateY(-3px);
}

.btn-text {
    text-shadow: 0 0 10px rgba(0,255,204,0.5);
}

.btn-icon {
    font-size: 28px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.status-message {
    text-align: center;
    font-size: 18px;
    min-height: 26px;
    margin-top: 15px;
}

.status-message.error {
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255,0,85,0.8);
    animation: shake 0.5s;
}

.status-message.success {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0,255,204,0.8);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.security-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(0,255,204,0.1);
    border-radius: 8px;
    margin-top: 20px;
    font-size: 18px;
    color: #00ffcc;
    border: 1px solid rgba(0,255,204,0.3);
}

.shield-icon {
    font-size: 24px;
    animation: shieldPulse 2s infinite;
}

@keyframes shieldPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.secure-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    letter-spacing: 2px;
}

/* Floating Cards */
.floating-cards {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.card {
    background: rgba(10, 10, 42, 0.95);
    border: 2px solid #ff00cc;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 220px;
    animation: cardFloat 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255,0,204,0.2);
}

.card:nth-child(2) { animation-delay: 0.5s; border-color: #00ffcc; }
.card:nth-child(3) { animation-delay: 1s; border-color: #ffff00; }

.card-icon {
    font-size: 32px;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Press Start 2P', cursive;
}

.card-value {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
}

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

/* Footer */
.login-footer {
    padding: 30px 60px;
    border-top: 2px solid #00ffcc;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #00ffcc;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    letter-spacing: 3px;
    color: #ff00cc;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(0,255,204,0.7);
}

.footer-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0,255,204,0.1);
    border-radius: 5px;
    border: 1px solid rgba(0,255,204,0.3);
}

.timer-icon {
    font-size: 20px;
}

.timer-text {
    font-family: 'VT323', monospace;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-header {
        padding: 20px;
    }

    .retro-logo {
        font-size: 18px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-title {
        font-size: 24px;
    }

    .floating-cards {
        right: 10px;
        bottom: 10px;
    }

    .card {
        width: 180px;
        padding: 10px 15px;
    }

    .login-footer {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Glitch Effect Utility */
@keyframes glitch-anim {
    0% { clip-path: inset(0 0 0 0); }
    1% { clip-path: inset(10% 0 80% 0); }
    2% { clip-path: inset(80% 0 10% 0); }
    3% { clip-path: inset(40% 0 50% 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.glitch-text {
    animation: glitch-anim 2s infinite;
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.error-modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.error-content {
    background: rgba(10, 10, 42, 0.98);
    border: 3px solid #ff0055;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.4);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s;
}

.error-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: #ff0055;
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
    margin-bottom: 15px;
}

.error-message {
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
    line-height: 1.4;
}

.btn-error {
    padding: 15px 35px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: #ff0055;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4);
}

.btn-error:hover {
    background: #cc0044;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.6);
}

@keyframes modalPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Forgot Password Modal */
.forgot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.forgot-modal.hidden {
    display: none;
}

.forgot-content {
    background: rgba(10, 10, 42, 0.98);
    border: 3px solid #00ffcc;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.4);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.close-forgot {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #00ffcc;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-forgot:hover {
    transform: rotate(90deg);
    color: #ff00cc;
}

.forgot-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    margin-bottom: 15px;
}

.forgot-desc {
    font-size: 18px;
    color: #fff;
    margin-bottom: 25px;
}

.btn-forgot {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    background: #00ffcc;
    color: #0a0a2a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

.btn-forgot:hover {
    background: #00ccaa;
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.6);
}
