:root{
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #fff;
    --text-color: #333;
    
}

body{
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: url(Night\ city.jpeg);
    background-size: cover;
    background-position: relative;
    height: 100dvh;
}

#fondo{
    width: 100%;
}
#boton_regis{
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}


.bienvenida {
    margin-left: auto;  
    margin-right: auto;
    width: 100%;
    text-align: center;
}

.formulario {
    margin-left: auto;
    margin-right: auto;
    margin-top: -60px;
    padding: 20px;
    width: 400px;
    background: linear-gradient(to bottom, rgb(161, 23, 225), #5a0ae5);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#form_regis h2 {
    text-align: center; 
    padding-top: 0;
    color: var(--background-color);
    font-size: 40px;
}
#imagen_usuario{
    display:block; 
    margin: 0 auto;
    border-radius:50%;
    width:110px; 
    height:110px; 
    object-fit:cover;
    transition: transform 0.2s ease;
}
#imagen-logo:hover {
    transform: scale(1.08);
}



.formulario h1 {
    text-align: center; 
    padding: 0 0 10px 0;
    color: var(--background-color);
    font-size: 40px;
}  

.formulario h2 {
    text-align: center; 
    padding: 8px 0 20px 0;
    border-bottom: 1px solid silver;
}

.formulario form {
    padding-top: 5px;
}

.formulario h1 + p { 
    text-align: center;                   
    color: white; 
    font-size: 20px;     
    border-bottom: 1px solid silver; 
    padding: 0 0 20px 0;
}


.campos{
    border-bottom: 2px solid rgb(255, 255, 255);
    margin: 15px 30px;
}

::placeholder {
    color: rgb(255, 255, 255);
    opacity: 0.7;
}

.campos input {
    width: 100%;
    padding: 0 10px;
    height: 40px;
    border: none;
    font-size: 23px;
    background: transparent;
    outline: none;
    transition: 0.3s;
    color: var(--background-color);
}
.campos input:focus {
    padding: 4px 10px;
    transition: 0.3s;
}

.boton button {
    margin-left: 7.5%;
    width: 85%;
    height: 40px;
    background:#5a0ae5;
    color: var(--background-color);
    border: none;
    border-radius: 20px;
    font-size: 20px;
    cursor: pointer;
    transition: .3s;
    box-shadow: black 0px 0px 10px 0px;
}

.boton button:hover {
    width: 90%;
    margin-left: 5%;
    box-shadow: black 0px 0px 5px 0px;
}

.registrarse {
    text-align: center;
    margin-top: 20px;
    color: var(--background-color);
}

.registrarse p {
    margin: 0;
    font-size: 20px;
}

.registrarse a {
    color: rgb(87, 206, 246);
    text-decoration: none;
}
.registrarse a:hover {
    text-decoration: underline;
}
#mensaje_error{
    display:none;
    color: red;
    margin-top: -20px;
    padding-bottom:20px;
    margin-left: 30px;
}
#mensaje_error_usuario{
    display:none;
    color: red;
    margin-top: -20px;
    padding-bottom:20px;
    margin-left: 30px;
}

#mensaje_error_edad{
    display:none;
    color: red;
    margin-top: -20px;
    padding-bottom:20px;
    margin-left: 30px;
}


