body.login-container { /* Applied to body for login.html */
    font-family: 'Inter', sans-serif;
    background: linear-gradient(120deg, #0f172a 0%, #1e293b 100%);
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #374151; /* Default text color, login card will override for its content */
    padding: 1rem; /* Add some padding for smaller screens */
}

.login-container h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-size: 3rem; /* Default size */
}

.login-container > * {
    position: relative;
    z-index: 2;
}

.login-card {
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 32px rgba(0,0,0,0.18), 0 1.5px 8px rgba(100,0,255,0.09);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem 2rem;
    width: 100%;
    max-width: 370px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .login-card {
        margin-top: 3.5rem;
    }
}

.login-input {
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fff; /* Ensure background is white */
    color: #1f2937; /* Ensure text is dark */
}

.login-input:focus {
    outline: none;
    border-color: #2563EB; /* blue-600 */
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-button {
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    width: 100%;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    border: none;
    cursor: pointer;
    background: #2563EB; /* blue-600 */
}

.login-button:hover {
    background: #1D4ED8; /* blue-700 */
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.login-error {
    color: #dc2626; /* red-600 */
    font-size: 0.875rem;
    margin-top: 1rem;
    text-align: center;
}

/* 3D Brain Animation Canvas */
.animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0;
    pointer-events: none;
    display: block !important;
    background: transparent !important;
}

/* Loading overlay (can be shared if login.html links components.css, or duplicated here) */
#loadingOverlay {
    position: fixed;
    inset: 0px;
    background-color: rgba(17, 24, 39, 0.75); /* Tailwind gray-900 with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 110; /* Ensure it's on top */
    transition: opacity 0.3s ease-in-out;
}
#loadingOverlay.hidden {
    display: none; /* Or opacity: 0; pointer-events: none; */
}
#loadingOverlay .animate-spin {
    border-top-color: #EC4899; /* pink-500 */
    border-left-color: #2563EB; /* blue-600 */
    border-width: 5px;
    width: 3rem; /* 48px */
    height: 3rem; /* 48px */
    animation: spin 1s linear infinite; /* Tailwind's animate-spin */
    border-radius: 50%;
    border-style: solid;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

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

/* Language switch button on login page - basic styling */
#lang-switch {
    /* Uses Tailwind classes in HTML, but can add specific overrides here if needed */
}

/* Mobile Responsiveness for Login Card */
@media (max-width: 480px) {
    .login-container h1 {
        font-size: 2.5rem; /* Smaller title on mobile */
        margin-bottom: 1.5rem; /* Reduced bottom margin for title */
    }
    .login-card {
        max-width: 90%; /* Use percentage for better fit */
        padding: 2rem 1.5rem; /* Reduce padding */
        margin-top: 1rem; /* Reduce top margin */
    }
}
