/* 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 */
label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e0f2f1;
    font-weight: 500;
    text-align: left;
}

/* Campos */
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;
}

/* Enlaces */
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;
    inset: 0;
    background: rgba(0,0,0,.60);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 9999;
}

/* Sobrescribe el estilo del div general */
#modalPoliticas > div{
    margin-top: 0 !important;
    background: #ffffff !important;
    color: #004d40;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    padding: 30px;
    border-radius: 16px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0,0,0,.35);
    border: none;
}

/* Título */
#modalPoliticas h3{
    text-align:center;
    margin-bottom:20px;
    color:#00695c;
    font-size:1.5rem;
}

/* Lista */
#modalPoliticas ul{
    margin-left:22px;
    margin-bottom:20px;
}

#modalPoliticas li{
    color:#333;
    line-height:1.7;
    margin-bottom:12px;
}

/* Botón */
#modalPoliticas button{
    display:block;
    width:180px;
    margin:25px auto 0;
}

/* Scroll */
#modalPoliticas > div::-webkit-scrollbar{
    width:8px;
}

#modalPoliticas > div::-webkit-scrollbar-track{
    background:#ececec;
}

#modalPoliticas > div::-webkit-scrollbar-thumb{
    background:#009688;
    border-radius:10px;
}

#modalPoliticas > div::-webkit-scrollbar-thumb:hover{
    background:#00695c;
}

/* 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{
        width:95%;
        padding:20px;
        max-height:85vh;
    }

    #modalPoliticas button{
        width:100%;
    }
}