*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center; 
    flex-direction: column; 
}

.container {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin-bottom: 30px; 
}

.logo {
    max-width: 100%; 
    height: auto; 
    border-radius: 10px;
}

h1, h2{
    text-align: center;
    color: #06387F;
}

h1{
    font-size: 28px;
}

h2{
    font-size: 22px;
}

form{
    align-items: center;
    width: 80%;
    max-width: 500px;
    background: #fff;
    padding: 40px 0;
    box-shadow: 0 0 6px 0 rgba(88, 88, 88, 0.359);
    border-radius: 10px;
    border-top: 25px solid #00AD1F;
    border-bottom: 25px solid #06387F;
}

.form{
    width: 100%;
    margin: auto;
}

form .grupo{
    position: relative;
    margin: 45px ;
}

input{
    background: none;
    color: #7c7c7c;
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: none;
    border-bottom: 1px solid #49454567;
}

input:focus{ 
    outline: none;
}

input:focus~.barra::before{
    width: 100%;
}

label{
    font-size: 15px;
    color: #00AD1F;
}

.msj{
    font-size: 13px;
    color: #06387F;
}

.barra{
    position: relative;
    display: block;
    width: 100%;
}

.barra::before{
    content: "";
    height: 2px;
    width: 0%;
    bottom: 0;
    position: absolute;
    background: linear-gradient(to right, #00AD1F, #06387F);
    transition: 0.3s ease width;
    left: 0;
}

select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    color: #4f4f4f;
    background-color: white;
    border: no;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

select:hover {
    background: #06387F;
    color: white;
}

select option {
    color: #4f4f4f;
    background: white;
    padding: 10px;
    font-size: 16px;
}

select:focus {
    color: white;
    background: #06387F;
}


button{
    font-family: 'Poppins', sans-serif;
    background: #00AD1F;
    border: none;
    display: block;
    width: 80%;
    margin: 10px auto;
    color: #fff;
    height: 40px;
    font-size: 16px;
    border-radius: 20px;
    cursor: pointer;
}

button:focus{
    background: rgb(3, 48, 3);
}

.container {
    position: relative;
    align-items: center; 
    margin-bottom: 30px; 
    width: 80%;
    max-width: 500px;
}

.logo {
    max-width: 100%; 
    height: auto; 
}

#mensaje {
    display: none;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    align-content: center;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
    height: 40px;   
}

.exito{
    background-color: rgba(6, 56, 127, 0.711);
    color: rgb(255, 255, 255);
}

.error{
    background-color: rgba(255, 0, 0, 0.414);
    color: rgb(113, 0, 0);
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

input[type="checkbox"]:hover {
    background-color: #e0e0e0;
}


.fecha-nacimiento {
    display: flex;
    align-items: center;  
    gap: 10px;
}

.campo {
    display: flex;
    flex-direction: column;
    align-items: center;  
    width: 30%;  
    color: #06387F;
}

.fecha-nacimiento input {
    padding: 8px;
    font-size: 16px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;  
}

.fecha-nacimiento input:focus {
    border-color: #4CAF50; 
    outline: none;
}

.fecha-nacimiento input::placeholder {
    color: #999;
}

.barra-separadora {
    font-size: 30px; 
    align-self: center; 
    color: #4f4f4f;
    margin: 0 5px; 
}

#fecha_nac {
    display: none;
}

@media screen and (max-width:500px){
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0vw 5vw;
        min-height: 80vh;
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5vw;
        width: 100%;
        max-width: 100%;
        top: 2vw;        
    }

    h1, h2 {
        text-align: center;
        margin-bottom: 2vw;
    }
    
    h1 {
        font-size: 6vw;
    }
    
    h2 {
        font-size: 5vw;
    }
    
    form {
        width: 95%;
        max-width: 100%;
        padding: 8vw 5vw;
        border-radius: 10px;
        border-top: 6vw solid #00AD1F;
        border-bottom: 6vw solid #06387F;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        top: 3vw;
    }
    
    form .grupo {
        position: relative;
        margin: 3vw 0;
        width: 100%;
    }

    .logo {
        max-width: 90%; 
        height: auto; 
        border-radius: 5px;
    }
    
    input, select {
        background: none;
        font-size: 5vw;
        padding: 3vw;
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid #49454567;
    }
    
    input:focus, select:focus {
        outline: none;
    }
    
    input:focus ~ .barra::before {
        width: 100%;
    }
    
    label {
        font-size: 4vw;
        display: block;
        margin-bottom: 1vw;
    }
    
    .barra {
        position: relative;
        display: block;
        width: 100%;
    }
    
    .barra::before {
        content: "";
        height: 2px;
        width: 0%;
        bottom: 0;
        position: absolute;
        background: linear-gradient(to right, #00AD1F, #06387F);
        transition: 0.3s ease width;
        left: 0;
    }
    
    button {
        border: none;
        display: block;
        width: 100%;
        margin: 5vw 0;
        height: 12vw;
        font-size: 5vw;
        border-radius: 5vw;
    }
    
    #mensaje {
        display: none;
        font-size: 4vw;
        border-radius: 2vw;
        text-align: center;
        align-content: center;
        margin-top: 6vw;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: 10vw;
    }
}