/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;800&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-card: #151b2b;
    --fiyah-red: #ff3333;
    --fiyah-orange: #ff6600;
    --fiyah-yellow: #ffcc00;
    --text-light: #ffffff;
    --text-muted: #a0aec0;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(rgba(11, 15, 25, 0.7), rgba(11, 15, 25, 0.95)), url('../assets/bg.png') center/cover no-repeat fixed;
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Login Card - Glowing Border Effect */
.login-card {
    background: var(--bg-dark);
    border-radius: 24px;
    padding: 48px 40px;
    border: 1px solid rgba(255, 102, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    animation: slideUp 0.5s ease;
}

.login-card::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--fiyah-red), var(--fiyah-yellow));
    z-index: -1;
    border-radius: 26px;
    opacity: 0.5;
}

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

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

.login-header img {
    height: 60px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5));
}

.login-header h1 {
    font-size: 28px;
    font-family: 'Fredoka One', cursive;
    color: var(--text-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-muted);
}

.form-group label i {
    margin-right: 8px;
    color: var(--fiyah-orange);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #2d3748;
    background: #1f2937;
    color: var(--text-light);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--fiyah-orange);
    background: #2d3748;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--fiyah-yellow);
}

/* Button */
.btn-fire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(45deg, var(--fiyah-red), var(--fiyah-orange), var(--fiyah-yellow));
    background-size: 200% auto;
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.5s;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.btn-fire:hover:not(:disabled) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.6);
}

.btn-fire:disabled {
    background: #2d3748;
    color: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.message.error {
    background: rgba(255, 51, 51, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p, .login-footer a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: var(--fiyah-orange);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 15, 25, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #1f2937;
    border-top-color: var(--fiyah-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    .login-header h1 {
        font-size: 24px;
    }
}