/* Login Page Styles - Matching Elite Games Theme */
body {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-card {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 0.5vh solid #333;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header img {
    width: auto;
    height: 8vw;
    max-height: 80px;
    margin-bottom: 20px;
}

.login-header h1 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 2.5em;
    font-weight: bold;
}

.login-header p {
    color: #e0e0e0;
    font-size: 1.1em;
    margin: 0;
}

.auth-forms {
    text-align: left;
}

.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #333;
}

.form-group input::placeholder {
    color: #888;
}

.btn-primary {
    width: 100%;
    padding: 14px 25px;
    font-size: 16px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 500;
}

.btn-primary:hover {
    background: #388e3c;
    transform: translateY(-2px);
}

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

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #444;
}

.divider span {
    background: #1e1e1e;
    padding: 0 16px;
    color: #888;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.btn-google, .btn-github {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    background: #2a2a2a;
    color: #e0e0e0;
}

.btn-google:hover {
    background: #333;
    border-color: #555;
    transform: translateY(-2px);
}

.btn-github:hover {
    background: #333;
    border-color: #555;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.auth-footer p {
    margin: 8px 0;
    color: #888;
    font-size: 14px;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: #e0e0e0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(224, 224, 224, 0.3);
    border-top: 4px solid #e0e0e0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message-display {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 1000;
}

.message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

.message.success {
    background: #2e7d32;
    color: white;
    border: 1px solid #388e3c;
}

.message.error {
    background: #c62828;
    color: white;
    border: 1px solid #d32f2f;
}

.message.info {
    background: #1976d2;
    color: white;
    border: 1px solid #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 2em;
    }
    
    .login-header p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px 15px;
    }
    
    .login-header h1 {
        font-size: 1.8em;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 14px;
    }
    
    .btn-primary, .btn-google, .btn-github {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Accessibility */
.btn-primary:focus,
.btn-google:focus,
.btn-github:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Error states */
.form-group input.error {
    border-color: #c62828;
    background: rgba(198, 40, 40, 0.1);
}

.form-group .error-message {
    color: #c62828;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}