/* registrouser.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;
    padding: 20px;
}

/* Encabezado */
header {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Contenedor principal */
div {
    margin-top: 50px;
    background: rgba(255, 255, 255, 0.15);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.7s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

div h2 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Labels y campos de texto */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0f2f1;
    font-weight: 500;
    text-align: left;
}

input[type="text"],
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="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    background: white;
    box-shadow: 0 0 0 2px #00bfa5;
    outline: none;
}

/* Botones */
button,
input[type="submit"] {
    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);
    margin-bottom: 1rem;
}

button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #009688, #00695c);
    transform: translateY(-2px);
}

/* Checkbox */
input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Enlace a login */
a {
    display: inline-block;
    margin-top: 1rem;
    color: #b2dfdb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: white;
}

/* Modal de políticas */
#modalPoliticas {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

#modalPoliticas div {
    background: rgba(255, 255, 255, 0.95);
    color: #004d40;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-in-out;
}

#modalPoliticas h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

#modalPoliticas ul {
    margin-left: 1rem;
    margin-bottom: 1.5rem;
}

#modalPoliticas button {
    width: auto;
    padding: 0.7rem 1.2rem;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 500px) {
    div {
        padding: 2rem 1.2rem;
    }

    #modalPoliticas div {
        padding: 1.5rem;
    }
}
