@font-face {
    font-family: 'Castoro';
    src: url('../fonts/castoro/castoro-regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins/Poppins-Regular.woff') format('woff');
    font-display: swap;    
}

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins';
    box-sizing: border-box;
    scroll-behavior: smooth;   
    --ancho: 10px; 
}

body {
    min-height: 100vh;
    width: 100vw;
    background: #222;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
}

header {    
    position: relative;    
    width: 500px;
    height: 130px;
    display: none; /* Cambiar a FLEX */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;    
}


div a img,
header img {        
    width: 150px;
    height: 150px;    
    border: var(--ancho) solid white;
    border-radius: 50%;
}

header h2 {
    color: #eee;
    margin-right: 20px;
}

div[class="login__form"],
div[class="register__form"] {    
    border: var(--ancho) solid white;
    width: 700px;
    border-radius: 20px;
}

div[class="login__form"] {
    display: grid;
    grid-template-areas: "h2 h2 h2"
    "logo form form"
    "logo form form"
    "logo form form";
}

div[class="register__form"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center ;
}


div a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    grid-area: logo;    
}

div[class="login__form"] a {
    top: -160px;
    left: -110px;
}

div[class="register__form"] a {
    top: -80px;
    left: 0px;
}

div h2 {
    padding-top: 25px;
    text-align: center;
    color: #eee;
    font-size: 2.5em;
    grid-area: h2;
}

a {
    text-decoration: none;
}

div[class="login__form"] form {
    height: 300px;
}

div[class="register__form"] form {
    height: 400px;
}

div form {
    grid-area: form;
    position: relative;    
    border: none; /* Ahora tiene borde el DIV contenedor*/
    border-radius: 15px;
        
    padding: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

div[class="register__form"] {
    padding-bottom: 80px;
}

form label {    
    transition: .5s;
    position: relative;
    top: -29px;
    color: #999;
    width: 100%;
    
    cursor:pointer;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

input {
    border: none;
    outline: none;
    padding: 5px;    
    border-bottom: 1px solid #fff;
}

input[type="text"],
input[type="password"], 
input[type="email"] {
    width: 300px;
    background: transparent;
    color: white;
    text-align: center;    
}

input[type="submit"],
input[type="reset"] {
    border-radius: var(--ancho);
    padding: 10px 50px;
    color: black;
    font-weight: 600;
    transition: .3s;
    cursor:pointer;
    border: none;
    background-image: linear-gradient(0deg, #505050, #c4c4c4);
}

input[type="reset"]:hover {
    filter:invert(1);
}

input[type="submit"]:hover {    
    transition: color .5s, box-shadow .5s;    
    color: white;     
    box-shadow: 2px 2px 2px #fff inset, -2px -2px 2px #fff inset; 
    
}

input:focus ~ label,
input:valid ~ label {
    transition: .4s;
    color: #eee;
    top: -53px;
    color: #4ea83f;  
    letter-spacing: .5em;
}

.key-ok {
    transition: .5s;   
    background: #4ea83f;    
    border: 1px solid #fff;
    box-shadow: none;
    color: black;
}

.key-fail {
    pointer-events: none;
    transition: .5s;   
    background: #555;
    border:none;     
}

span[id="lblAviso"] {
    color: #eee;
    font-size: .8em;
}

small {
    color: white;
    background: red;
    width: 100%;
    height: 20px;
}