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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    overflow: hidden;
    height: 100vh;
}

.login-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('/assets/img/black-gold-marble.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marble-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.login-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

/* Logo Section */
.logo-section {
    margin-bottom: 40px;
}

.logo-placeholder {
    display: inline-block;
    margin-bottom: 20px;
}

.logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-fallback {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    font-size: 48px;
    color: #D4AF37;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    color: #D4AF37;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* Login Form Container */
.login-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-form {
    width: 100%;
}

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

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 15px 45px 15px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: all 0.3s ease;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-container input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    z-index: 1;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #D4AF37;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background: #D4AF37;
    border-color: #D4AF37;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #D4AF37;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    border: none;
    border-radius: 10px;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

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

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

.btn-text {
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Additional Options */
.additional-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.additional-options p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.additional-options a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.additional-options a:hover {
    color: #FFD700;
}

/* Message Container */
.message-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
    animation: slideDown 0.3s ease;
}

.message.success {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .login-content {
        max-width: 350px;
        padding: 0 15px;
    }
    
    .login-form-container {
        padding: 30px 20px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .brand-name {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 320px) {
    .login-content {
        max-width: 280px;
    }
    
    .brand-name {
        font-size: 20px;
        letter-spacing: 1px;
    }
}

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

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Focus Styles for Accessibility */
.login-btn:focus,
.input-container input:focus,
.remember-me:focus-within,
.forgot-password:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .login-form-container {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #D4AF37;
    }
    
    .input-container input {
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid #D4AF37;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .login-btn,
    .input-container input,
    .toggle-password,
    .forgot-password,
    .additional-options a {
        transition: none;
    }
    
    .login-btn:hover {
        transform: none;
    }
    
    @keyframes slideDown {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}
