/* No tocamos el header, solo estilizamos el área de login */

.login-page {
    width: 100%;
    background: #f0f2f5;
    min-height: calc(100vh - 80px); /* deja espacio por si el header es sticky */
}

/* Contenedor que centra SOLO el formulario, no toda la página */
.center-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 160px;   /* espacio suficiente bajo el header */
    padding-bottom: 80px;
}

.form-container {
    width: 90%;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.form-container h1 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.6rem;
}

.error-message {
    background: #ffe5e5;
    color: #d8000c;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #555;
}

input[type="email"],
input[type="submit"] {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
}

input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.17);
}

.submit-button {
    background: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    font-weight: 600;
}

.submit-button:hover {
    background: #0056b3;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.link-register {
    display: block;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #007bff;
    text-decoration: none;
}

.link-register:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }
    .form-container h1 {
        font-size: 1.4rem;
    }
}
