/* ESTILO BASE */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../img/fondo4.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #ebeef0;
}

/* Fondo desenfocado detrás de todo */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/fondo.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(8px);
    -webkit-filter: blur(8px);
    transform: scale(1.1);
    z-index: -1;
}

/* Capa para oscurecer ligeramente y mejorar contraste */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* CONTENEDOR PRINCIPAL */
.container, .glass-panel {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    color: #000000;
}

/* TÍTULOS */
h1, h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #dad5d5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* FORMULARIO */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #f5efef;
}

/* CAMPOS DE ENTRADA */
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"] {
    width: 100%;
    padding: 10px 15px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    color: #003049;
}

/* BOTÓN ENVIAR */
button, input[type="submit"] {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 183, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 183, 255, 0.5);
}

button:active, input[type="submit"]:active {
    transform: scale(0.98);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.4);
}

/* TEXTOS OPCIONALES */
p, span, u {
    color: #585757;
}

/* CHECKBOX */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .container, .glass-panel {
        margin: 20px;
        padding: 20px;
    }

    h1, h2 {
        font-size: 20px;
    }
}
