/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Fundamental para que el padding no rompa el ancho */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Fuente más moderna */
    background: linear-gradient(-45deg, #a8e6cf, #56c596, #f9f871, #f4ac3f);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    color: #333;
    /* Mantenemos el text-align center para el body (afecta al logo y buzon) */
    text-align: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo */
img {
    max-width: 180px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 50%;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* --- ESTILOS DEL FORMULARIO BASE --- */
form {
    background-color: rgba(255, 255, 255, 0.95); /* Ligeramente translúcido */
    max-width: 400px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Sombra más suave y moderna */
    border-top: 6px solid #4CAF50;
    font-size: 16px;
}

#terminos {
    font-size: 10px;
}

/* --- CLASE ESPECÍFICA PARA LOGIN Y REGISTRO --- */
/* Esta clase justifica todo a la izquierda y mejora los inputs de texto */
.formulario-izquierda {
    text-align: left;
    max-width: 450px; /* Un poco más estrecho para que se vea elegante */
}

.formulario-izquierda label {
    display: block; /* Fuerza que el label ocupe su propia línea */
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d2d2d;
}

.formulario-izquierda input[type="text"],
.formulario-izquierda input[type="email"],
.formulario-izquierda input[type="password"] {
    width: 100%; /* Ocupa todo el ancho disponible */
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.formulario-izquierda input:focus {
    border-color: #4CAF50;
    background-color: #f9fff9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.formulario-izquierda button {
    width: 100%; /* Botón ancho completo */
    margin-top: 10px;
    padding: 14px;
    font-size: 18px;
}

.pie-form {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* --- ESTILOS PARA EL BUZÓN (Heredados/Genéricos) --- */
/* Mantenemos estilos para elementos que no son de la clase .formulario-izquierda */
h1 {
    color: #2d2d2d;
    margin-bottom: 25px;
    font-size: 24px;
}

select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

select:focus, textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

button {
    padding: 12px 30px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
}

button:active {
    transform: scale(0.98);
}

button[type="submit"] {
    background-color: #4CAF50;
    color: white;
}
button[type="submit"]:hover { background-color: #45a049; }

button[type="reset"] {
    background-color: #e74c3c;
    color: white;
}
button[type="reset"]:hover { background-color: #c0392b; }

.boton-enlace {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}
.boton-enlace:hover { text-decoration: underline; }

/* Checkboxes y Radios */
input[type="radio"], input[type="checkbox"] {
    accent-color: #4CAF50; /* Color moderno para inputs nativos */
    transform: scale(1.2);
    margin-right: 8px;
}

footer {
    margin-top: 40px;
    color: rgb(0, 0, 0);
    font-size: 0.9em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}