/* styles.css */

/* Reset y tipografía */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo con degradado profesional */
body {
    background: linear-gradient(135deg, #004d40, #00796b);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
}

/* Encabezado */
header {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    backdrop-filter: blur(5px);
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Contenedor del formulario */
.container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Caja del formulario con efecto glassmorphism */
.formulario-iniciosesion {
    background: rgba(255, 255, 255, 0.15);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(240, 237, 237, 0.973);
    animation: fadeIn 0.7s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.formulario-iniciosesion h1 {
    color: white;
    text-align: center;
    margin-bottom: 1.8rem;
    font-weight: 600;
}

/* Campos de texto */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0f2f1;
    font-weight: 500;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #004d40;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    background: white;
    box-shadow: 0 0 0 2px #00bfa5;
    outline: none;
}

/* Botón */
#btn-login {
    background: linear-gradient(135deg, #00bfa5, #00796b);
    color: white;
    border: none;
    padding: 0.9rem;
    width: 100%;
    font-size: 1.05rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.4);
}

#btn-login:hover {
    background: linear-gradient(135deg, #009688, #00695c);
    transform: translateY(-2px);
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 500px) {
    .formulario-iniciosesion {
        padding: 2rem 1.2rem;
    }
}
