/* Fuentes */

@font-face {
    font-family: "inter-bold";
    src: url(../assets/fuentes/Inter-Bold.ttf);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "inter-bold";
    background-color: #1a4734; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.formulario {
    width: 360px;
    background: white; 
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); 
}


.formulario h1 {
    text-align: center;
    padding-bottom: 20px;
    color: #333;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 600;
}


.nombre, .apellido, .username, .contrasena {
    position: relative;
    margin: 40px 0;
}

.nombre input, .apellido input, .username input, .contrasena input {
    font-family: "inter-bold";
    width: 100%;
    padding: 10px 0 5px 0;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc; 
    background: none;
    outline: none;
    transition: border-bottom 0.3s;
}


.nombre input:focus,
.apellido input:focus,
.username input:focus, 
.contrasena input:focus {
    border-bottom: 2px solid #007bff; 
}

.nombre label,
.apellido label,
.username label,
.contrasena label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #6c757d; 
    font-size: 16px;
    pointer-events: none;
    transition: 0.3s ease all; 
}


.nombre input:focus ~ label,
.nombre input:valid ~ label,
.apellido input:focus ~ label,
.apellido input:valid ~ label,
.username input:focus ~ label,
.username input:valid ~ label,
.contrasena input:focus ~ label,
.contrasena input:valid ~ label {
    top: -15px;
    font-size: 12px;
    color: #007bff; 
}


.formulario input[type="submit"] {
    width: 100%;
    height: 50px;
    background: #1a4734; 
    border: none;
    border-radius: 25px;
    font-size: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.formulario input[type="submit"]:hover {
    background: #2a6f4e; 
}

#iniciar:hover {
    transform: scale(1.05);
}

.Registrarse {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.Registrarse a {
    font-size: 18px;
    color: #007bff; 
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.Registrarse a:hover {
    color: #0056b3; 
    text-decoration: underline;
}

.mensaje-error {
    color: rgb(204, 46, 46);
    text-align: center;
}