/* --- VARIABLES GLOBALES DE DISEÑO --- */
:root {
    --primary-blue: #1161ee;
    --dark-blue: #120E77;
    --background-overlay: rgba(11, 6, 70, .85);
    --light-grey: #6a6f8c;
    --text-grey: #aaa;
    --white: #fff;
    --input-background: rgba(255, 255, 255, .1);
    --main-font: 'Paytone One', sans-serif;
}

/* --- ESTILOS BASE Y RESETEO --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--light-grey);
    background: var(--dark-blue);
    font: 300 14px/1.5 var(--main-font); /* Usamos la fuente principal por defecto */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- CONTENEDOR PRINCIPAL DEL LOGIN --- */
.login-wrap {
    width: 100%;
    margin: auto;
    max-width: 525px;
    min-height: 670px;
    position: relative;
    background: url(https://riouruguay.com.ar/sites/default/files/2021-08/Banner1.jpg) no-repeat center;
    background-size: cover;
    box-shadow: 0 12px 25px 0 rgba(0, 0, 0, .25);
    animation: fadeInScale 0.8s ease-out forwards;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.4s ease-in-out;
}

.login-html {
    width: 100%;
    height: 100%;
    position: absolute;
    padding: 50px 70px;
    background: var(--background-overlay);
    transition: padding 0.4s ease-in-out;
}

/* --- PESTAÑAS Y FORMULARIO --- */
.login-html .sign-in-htm,
.login-html .sign-up-htm {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    position: absolute;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    transition: all .8s linear;
}

.login-html .sign-in,
.login-html .sign-up,
.login-form .group .check {
    display: none;
}

.login-html .tab {
    font-size: 18px;
    margin-right: 15px;
    padding-bottom: 5px;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all .3s ease;
    text-transform: uppercase;
}

.login-html .sign-in:checked+.tab,
.login-html .sign-up:checked+.tab {
    color: var(--white);
    border-color: var(--primary-blue);
}

.login-form {
    min-height: 345px;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.login-form .group {
    margin-bottom: 15px;
}

.login-form .group .label {
    color: var(--text-grey);
    font-size: 12px;
    text-transform: uppercase;
}

.login-form .group .input,
.login-form .group .button {
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    background: var(--input-background);
    width: 100%;
    color: var(--white);
    display: block;
    font-size: 14px;
    font-family: inherit; /* Hereda la fuente principal */
}

.login-form .group .button {
    background: var(--primary-blue);
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-form .group .check:checked+label {
    color: var(--white);
}

/* --- ESTILOS DEL CHECKBOX "RECUÉRDAME" (RESTAURADOS) --- */
.login-form .group label .icon {
    width: 15px;
    height: 15px;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    background: var(--input-background);
}
.login-form .group label .icon:before,
.login-form .group label .icon:after {
    content: '';
    width: 10px;
    height: 2px;
    background: var(--white);
    position: absolute;
    transition: all .2s ease-in-out 0s;
}
.login-form .group label .icon:before {
    left: 3px;
    width: 5px;
    bottom: 6px;
    transform: scale(0) rotate(0);
}
.login-form .group label .icon:after {
    top: 6px;
    right: 0;
    transform: scale(0) rotate(0);
}
.login-form .group .check:checked+label .icon {
    background: var(--primary-blue);
}
.login-form .group .check:checked+label .icon:before {
    transform: scale(1) rotate(45deg);
}
.login-form .group .check:checked+label .icon:after {
    transform: scale(1) rotate(-45deg);
}


.login-html .sign-in:checked+.tab+.sign-up+.tab+.login-form .sign-in-htm {
    transform: rotate(0);
}

.login-html .sign-up:checked+.tab+.login-form .sign-up-htm {
    transform: rotate(0);
}

.hr {
    height: 2px;
    margin: 15px 0;
    background: rgba(255, 255, 255, .2);
}

.foot-lnk {
    text-align: center;
}

/* --- ANIMACIÓN DE ENLACES DEL FOOTER (RESTAURADA) --- */
.foot-lnk .animated-btn {
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 3px;
    font-family: inherit;
    text-transform: none;
}
.foot-lnk .animated-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.foot-lnk .animated-btn:hover {
    color: var(--white);
}
.foot-lnk .animated-btn:hover::after {
    width: 100%;
}


/* --- ANIMACIONES GENERALES --- */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- PUNTOS DE QUIEBRE PARA ADAPTABILIDAD --- */
@media (max-width: 768px) {
    .login-wrap {
        width: 100%;
        height: 100vh;
        max-width: none;
        min-height: auto;
        border-radius: 0;
        box-shadow: none;
        background-image: none;
        background-color: var(--dark-blue);
        animation: none;
    }

    .login-html {
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: transparent;
        height: 100%;
        position: static;
    }

    .login-form .group .input,
    .login-form .group .button {
        font-size: 12px;
        padding: 10px 15px;
    }

    .login-form .group .label {
         font-size: 13px;
    }
}