/* frontend/css/components.css */

.login-container {
    width: 100%;
    max-width: 420px; /* Slightly wider for a premium feel */
    padding: 20px;
    position: relative;
    z-index: 1; /* Keeps it above the dark background overlay */
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

/* Make the title bright white with a shadow so it pops against the photo */
.login-header h1 {
    font-size: 1.75rem;
    color: #ffffff; 
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); 
}

.login-header p {
    color: #e2e8f0; /* Soft light gray */
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* --- The Solid, Sleek Modern Card --- */
.login-card {
    /* 1. Change from transparent to a solid, very dark navy/slate */
    background: transparent; /* Keep the image visible */
    
    /* 2. Remove the heavy blur (backdrop-filter) */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    
    padding: 40px 32px;
    /* border-radius: 16px; */
    
    /* 3. Keep a strong shadow to separate it from the background image */
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);  */
}

/* Ensure headings and labels are crisp and bright */
.login-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
    color: #ffffff; 
    text-shadow: none; /* No shadow needed on solid background */
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
}




.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0; /* Crisp light gray */
    text-shadow: none;
}

/* --- Solid Input Fields --- */
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px; /* Slightly more padding for a premium feel */
    
    /* 4. Solid background for inputs, very dark */
    background: transparent; /* Keep it transparent to show the background image */
    border: 1px solid #334155;
    color: #ffffff;
    
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #3b82f6; /* Bright blue highlight when clicking */
    background: #0f172a;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); /* Soft blue glow ring */
}

.form-group input::placeholder {
    color: #64748b; 
}


/* Buttons */
.btn {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

/* Status Banners */
.message-banner {
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    margin-bottom: 16px;
    text-align: center;
}

.message-banner.hidden {
    display: none;
}

.message-banner.error {
    background-color: var(--error-bg);
    color: var(--error-color);
    border: 1px solid #fca5a5;
}

.message-banner.success {
    background-color: var(--success-bg);
    color: var(--success-color);
    border: 1px solid #6ee7b7;
}


/* --- Toast Notification System (Sleek Pill Redesign) --- */
#toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast {
    background-color: #1e293b; /* Sleek dark color */
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px; /* Perfect pill shape */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideUpFade 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast.success { border: 1px solid #10b981; }
.toast.error { border: 1px solid #ef4444; }

.toast i { font-size: 1.25rem; }
.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}