/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Consolas', monospace;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 0, 0, 0.35) 0%, rgba(255, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.0) 60%);
    animation: riseGlow 8s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes riseGlow {
    0% { opacity: 0.25; transform: translateY(10px); }
    100% { opacity: 0.6; transform: translateY(-10px); }
}

/* Login container */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin-top: 10px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 280px;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    /* Crop area to remove bottom-right label from provided image */
    clip-path: inset(0 8% 10% 0);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    }
    to { 
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
    }
}

/* Form container */
.login-form-container {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff0000;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Bracket and title styling */
.bracket {
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000;
}

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

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: #ffffff;
}

.input-group input {
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff0000;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.input-group input::placeholder {
    color: #666;
}

/* Button styling */
.login-btn {
    padding: 15px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.login-btn:hover {
    background: linear-gradient(45deg, #ff4444, #ff0000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
}

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

/* Error message */
.error-message {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 4px;
    text-align: center;
    animation: shake 0.5s ease-in-out;
}

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

.error-text {
    color: #ffffff;
    margin-left: 10px;
}

/* Loading animation */
.loading {
    margin-top: 15px;
    text-align: center;
    color: #00ff00;
}

.dots {
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* System info */
.system-info {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 100%;
}

.info-line {
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-line:last-child {
    margin-bottom: 0;
}

.info-text {
    color: #cccccc;
}

/* Time animation */
#current-time {
    position: relative;
}

#current-time::after {
    content: '_';
    animation: blink 1s infinite;
    color: #ff0000;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Responsive design */
@media (max-width: 600px) {
    .login-container {
        padding: 10px;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1rem;
    }
}
