:root {
    --itap-purple: #51459E;
    --itap-purple-hover: #3f3580;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }

body {
    background-color: #f1f3f6; /* Fondo gris muy claro de la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-wrapper {
    width: 100%;
    max-width: 1050px;
    padding: 20px;
}

.login-card {
    display: flex;
    background: var(--white);
    border-radius: 10px; /* Bordes suaves */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-height: 550px;
}

/* Lado Morado (Izquierdo) */
.brand-side {
    flex: 1;
    background-color: var(--itap-purple);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 50px 40px;
    text-align: center;
}

.brand-logo { margin-bottom: 10px; opacity: 0.9; }
.app-title { font-size: 2rem; font-weight: 500; margin-bottom: 20px; }

.quote-container { margin-top: auto; margin-bottom: auto; }
.quote { font-style: italic; font-size: 1.1rem; line-height: 1.5; margin-bottom: 10px; font-weight: 300; }
.author { font-size: 0.9rem; font-weight: 600; }

.brand-footer { font-size: 0.75rem; opacity: 0.7; }

/* Lado del Formulario (Derecho) */
.form-side {
    flex: 1.4;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-content { width: 100%; max-width: 400px; margin: 0 auto; text-align: center; }

.school-logo { width: 90px; height: auto; margin-bottom: 15px; }
.school-name { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 35px; font-weight: 500; }

.auth-form { text-align: left; }

.input-field { margin-bottom: 22px; }
.input-field label { display: block; font-size: 0.9rem; color: var(--text-light); margin-bottom: 8px; }
.input-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: var(--itap-purple);
    box-shadow: 0 0 0 3px rgba(81, 69, 158, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--itap-purple);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover { background-color: var(--itap-purple-hover); }

/* Responsividad para móviles */
@media (max-width: 768px) {
    .login-card { flex-direction: column; }
    .brand-side { display: none; } /* En móvil solemos ocultar la parte decorativa */
}

.alert-error {
    background-color: #fff1f2; /* Rojo muy suave */
    border: 1px solid #fda4af;
    color: #e11d48; /* Rojo vibrante */
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.alert-error svg {
    flex-shrink: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}