/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    background-color: #000000;
    color: #FFCC00;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
}

.login-banner {
    text-align: center;
    margin-bottom: 30px;
}

.login-banner img {
    max-width: 100%;
    height: auto;
}

.login-box {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.1);
}

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

.login-header h1 {
    color: #FFCC00;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
}

.login-header.error h1 {
    color: #FF3333;
}

.login-header.warning h1 {
    color: #FF9933;
}

.login-header.info h1 {
    color: #3399FF;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-error {
    background-color: rgba(255, 51, 51, 0.1);
    border-color: #FF3333;
    color: #FF6666;
}

.alert-warning {
    background-color: rgba(255, 153, 51, 0.1);
    border-color: #FF9933;
    color: #FFAA66;
}

.alert-info {
    background-color: rgba(51, 153, 255, 0.1);
    border-color: #3399FF;
    color: #66AAFF;
}

.alert-success {
    background-color: rgba(51, 255, 51, 0.1);
    border-color: #33FF33;
    color: #66FF66;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    color: #FFCC00;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 4px;
    color: #FFCC00;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="email"]:focus {
    outline: none;
    border-color: #FFCC00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.form-group input[type="text"]:disabled,
.form-group input[type="password"]:disabled,
.form-group input[type="email"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    color: #FFCC00;
    cursor: pointer;
    user-select: none;
}

/* Button Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #FFCC00;
    color: #000000;
}

.btn-primary:hover {
    background-color: #FFD633;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
    transform: translateY(-2px);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: #333333;
    color: #FFCC00;
    border: 2px solid #FFCC00;
}

.btn-secondary:hover {
    background-color: #444444;
}

.btn-full-width {
    width: 100%;
}

/* Social Login Buttons */
.social-login {
    margin-top: 30px;
}

.social-login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login-divider::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #333333;
}

.social-login-divider span {
    background: rgba(0, 0, 0, 0.8);
    padding: 0 15px;
    position: relative;
    color: #666666;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-google {
    background-color: #4285f4;
    color: white;
}

.btn-google:hover {
    background-color: #357ae8;
}

.btn-facebook {
    background-color: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background-color: #166fe5;
}

.btn-discord {
    background-color: #5865f2;
    color: white;
}

.btn-discord:hover {
    background-color: #4752c4;
}

.btn-social:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Links */
.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.login-links a:hover {
    color: #FFCC00;
}

.login-links a:visited {
    color: #666666;
}

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 204, 0, 0.3);
    border-top-color: #FFCC00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.spinner.active {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Redirect Info */
.redirect-info {
    text-align: center;
    margin-top: 20px;
    color: #666666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .form-group input {
        font-size: 14px;
    }
}

/* Classic Mode - Image-based layout */
body.login-classic {
    padding: 0;
    align-items: flex-start;
}

.login-classic .login-container {
    max-width: 640px;
    padding: 20px 10px;
}

.login-classic .login-table {
    width: 640px;
    border-collapse: collapse;
}

.login-classic .login-table img {
    display: block;
}

.login-classic .login-input-cell {
    text-align: center;
}

.login-classic .login-input-cell input {
    background: transparent;
    border: none;
    color: #FFCC00;
    font-size: 16px;
    padding: 4px;
}

/* Hide/Show based on mode */
.modern-mode {
    display: block;
}

.classic-mode {
    display: none;
}

body.login-classic .modern-mode {
    display: none;
}

body.login-classic .classic-mode {
    display: block;
}
