/* Component: Login */
/* Purpose: Styling for login form with modal-style dark theme */

/* Theme Variables - Dark Theme Only */
:root {
    /* Primary Colors - Forest & Gold Brand */
    --primary-green: #6b8e6b;
    --primary-gold: #e6d570;
    --primary-red: #dc2626;
    --primary-forest: #8db88d;

    /* Dark Theme - Deep Forest Night */
    --bg-primary: #0f1b0f;
    --bg-secondary: #1a2e1a;
    --bg-tertiary: #2d4a2d;
    --text-primary: #f0f8f0;
    --text-secondary: #d4edda;
    --text-muted: #9db5a0;
    --border-color: #3e5c3e;
    --card-bg: rgba(15, 27, 15, 0.95);
    --error-red: #e53e3e;
    --success-green: #48bb78;
    --shadow-heavy: rgba(0,0,0,0.5);
}

/* Body with Background Image */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('../assets/homeshot.png') center calc(50% - 75px) no-repeat;
    background-size: cover;
    position: relative;
}

/* Dark overlay for readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 0;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

/* Login Card - Modal Style */
.login-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

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

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

.login-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(229, 62, 62, 0.15);
    color: var(--error-red);
    border: 1px solid rgba(229, 62, 62, 0.3);
}

.alert-success {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success-green);
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.alert-icon {
    font-size: 16px;
}

/* Form Styling */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(230, 213, 112, 0.2);
}

/* Launch Button Styling */
.launch-btn {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    color: white;
    border: 3px solid #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    box-shadow:
        0 4px 15px rgba(185, 28, 28, 0.4),
        0 0 0 0 rgba(251, 191, 36, 0.7);
    animation: goldenPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes goldenPulse {
    0% {
        box-shadow:
            0 4px 15px rgba(185, 28, 28, 0.4),
            0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow:
            0 4px 15px rgba(185, 28, 28, 0.4),
            0 0 20px 5px rgba(251, 191, 36, 0.4);
    }
    100% {
        box-shadow:
            0 4px 15px rgba(185, 28, 28, 0.4),
            0 0 0 0 rgba(251, 191, 36, 0.7);
    }
}

.launch-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    animation: none;
    box-shadow:
        0 8px 25px rgba(185, 28, 28, 0.5),
        0 0 30px 8px rgba(251, 191, 36, 0.6);
}

.launch-btn.primary {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

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

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

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-footer a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #ffd700;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .login-container {
        max-width: 90%;
    }

    .login-card {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-header p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.25rem;
    }

    .login-header h2 {
        font-size: 1.3rem;
    }

    .form-group input {
        padding: 0.65rem;
        font-size: 0.95rem;
    }

    .launch-btn.primary {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
    }
}
