/* Estilos generales y centrado en pantalla */
body {
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 15px;
}

/* Contenedor principal (Tarjeta) */
#divbodyholder {
    width: 100%;
    max-width: 420px;
}

#divbody {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 2rem !important; /* Sobrescribe p-4 si es necesario */
}

/* Títulos */
h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* --- ESTILOS DEL FORMULARIO (Login) --- */
form {
    display: flex;
    flex-direction: column;
}

/* Ocultamos los <br> dentro del form para manejar el espaciado con CSS */
form br {
    display: none;
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.4rem;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input[type="submit"] {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
}

input[type="submit"]:hover {
    background-color: #1d4ed8;
}

/* Enlace de "Olvidé mi clave" */
.content > p {
    text-align: center;
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.content > p a {
    color: #64748b;
    text-decoration: none;
}

.content > p a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* --- ESTILOS DE LA LISTA DE CURSOS (Inicio) --- */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

ul li a {
    display: block;
    padding: 0.85rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

ul li a:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateX(3px);
}

/* Estilo diferenciado para el enlace de "Seguimiento de alumnos" dentro del ul */
ul p {
    margin: 0.75rem 0 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

ul p a {
    display: block;
    text-align: center;
    padding: 0.7rem;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

ul p a:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
