/* --- CSS VARIABLES & RESET --- */
:root {
    --color-brand-primary: #3b82f6; /* Blue */
    --color-brand-hover: #2563eb;
    --color-bg-light: #f1f5f9; /* Soft background */
    --color-text-dark: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-error: #ef4444;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- LOGIN CARD STYLING --- */
.login-container {
    width: 100%;
    max-width: 420px; /* Standard size for a login form */
}

.login-card {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-brand-primary);
}

.logo-section p {
    color: var(--color-text-muted);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* --- ALERT STYLING --- */
.alert-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: var(--color-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert-error li {
    margin-bottom: 5px;
}

.text-danger {
    color: var(--color-error);
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* --- FORM STYLING --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-field.input-validation-error {
    border-color: var(--color-error);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--color-brand-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--color-brand-hover);
}

.btn-primary:disabled {
    background-color: var(--color-text-muted);
    cursor: not-allowed;
}

.link-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
}

.link-footer a {
    color: var(--color-brand-primary);
    font-weight: 600;
    text-decoration: none;
}

.link-footer a:hover {
    text-decoration: underline;
}

/* Optional: Checkbox/Forgot Password Layout */
.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.forgot-password a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
}
.forgot-password a:hover {
    color: var(--color-brand-primary);
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}
.remember-me input {
    margin-right: 8px;
}

/* --- RESPONSIVE --- */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .logo-section h2 {
        font-size: 1.5rem;
    }

    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
