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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Animation */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 107, 0.05) 0%, transparent 30%);
    animation: ambient 8s ease-in-out infinite alternate;
}

@keyframes ambient {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

/* Container */
.login-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-box {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.subtitle {
    color: #666;
    font-size: 0.9rem;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    padding: 1rem;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid #333;
    color: #e8e8e8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #64b5f6;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.3);
    background: rgba(20, 20, 20, 0.95);
}

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

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #64b5f6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8b8b8;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #64b5f6;
}

.forgot-password {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5aa3e3;
}

.login-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 181, 246, 0.4);
    background: linear-gradient(135deg, #5aa3e3 0%, #1e88e5 100%);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.divider span {
    color: #666;
    font-size: 0.9rem;
}

.register-section {
    text-align: center;
    padding: 1.5rem;
    background: rgba(42, 42, 42, 0.3);
    border-radius: 8px;
    border: 1px solid #333;
}

.register-text {
    color: #b8b8b8;
    margin-bottom: 1rem;
}

.register-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.register-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

/* Server Status */
.server-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    z-index: 20;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #66bb6a;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.server-info {
    color: #b8b8b8;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Error messages */
.error-message {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-box {
        padding: 2rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .server-status {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 2rem;
    }
}

/* News ticker */
.news-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border-top: 1px solid #333;
    padding: 0.75rem 0;
    overflow: hidden;
    z-index: 15;
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin-right: 3rem;
    flex-shrink: 0;
}

.ticker-item.important {
    color: #ff6b6b;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}