/* ==========================================
   JOUTAI LOGIN PAGE - POLICE COMPUTER AESTHETIC
   ========================================== */

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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #3b82f6;
}

/* CRT Screen Effect */
.crt-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    animation: flicker 0.15s infinite;
    z-index: 1;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 0.98;
    }
    20%, 24%, 55% {
        opacity: 1;
    }
}

/* Monitor Bezel */
.login-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.monitor-bezel {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 15px solid #3a3a3a;
    border-radius: 10px;
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.8),
        0 15px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.monitor-content {
    background: linear-gradient(to right, #1a2050 0%, #2a3060 50%, #1a2050 100%);
    border: 2px solid #3b82f6;
    border-radius: 3px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.monitor-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 3;
}

.badge {
    display: inline-block;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
    padding: 8px 16px;
    border: 2px solid #3b82f6;
    margin-bottom: 15px;
    box-shadow: 
        0 0 10px rgba(59, 130, 246, 0.3),
        inset 0 0 5px rgba(59, 130, 246, 0.1);
    transform: skew(-5deg);
}

.badge-text {
    color: #000;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    transform: skew(5deg);
}

.badge-logo {
    max-width: 150px;
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-subtitle {
    color: #ffffff;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

.login-subtitle a {
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.login-subtitle a:hover {
    opacity: 1;
}

/* Form Styling */
.login-form {
    position: relative;
    z-index: 3;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #3b82f6;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: #1a2050;
    border: 2px solid #3b82f6;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.form-input:focus {
    box-shadow: 
        inset 0 0 10px rgba(59, 130, 246, 0.2),
        0 0 10px rgba(59, 130, 246, 0.3);
}

.form-input::placeholder {
    color: #1e40af;
    opacity: 0.7;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
    border: 2px solid #3b82f6;
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.login-button:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
    transform: translateY(-2px);
    background: linear-gradient(to bottom, #3b82f6, #1e40af);
}

.login-button:active {
    transform: translateY(0);
}

.button-indicator {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 35px;
    position: relative;
    z-index: 3;
}

.footer-text {
    color: #3b82f6;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.footer-time {
    color: #60a5fa;
    font-size: 11px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 600px) {
    .monitor-bezel {
        border: 10px solid #3a3a3a;
    }

    .monitor-content {
        padding: 30px 20px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .login-subtitle {
        font-size: 11px;
    }

    label {
        font-size: 12px;
    }

    .form-input {
        font-size: 13px;
        padding: 10px 12px;
    }

    .login-button {
        font-size: 13px;
        padding: 12px 15px;
    }
}
