/* =========================================
   1. IMPORTACIONES Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    /* Paleta de Colores */
    --primary-gradient: #fdfdfc;
    --secondary-color: #FF416C;
    --text-main: #ffffff;
    --text-muted: #A0AEC0;
    --text-black: #000000;
    --bg-color: #E9ECEF;
    --input-bg: #F7FAFC;
    --orangeUTE: #ff6700; /* CAMBIO: Renombrado de --white a --orangeUTE */
    --button: #00dabd;
}

/* =========================================
   2. CONFIGURACIÓN BASE Y BODY
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    background: url(./img/fondo.png);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    margin: 0;
}

/* =========================================
   3. CONTENEDOR PRINCIPAL (TARJETA)
   ========================================= */
.container {
    background-color: var(--orangeUTE); /* Actualizado */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 
                0 10px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 600px;
}

/* =========================================
   4. TIPOGRAFÍA Y ENLACES
   ========================================= */
h1 {
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--orangeUTE); /* Actualizado */
    margin: 20px 0 30px;
}

span {
    font-size: 12px;
    color: var(--text-muted);
    margin: 15px 0 20px;
    display: block;
}

a {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- CAMBIO: ESTILOS ESPECÍFICOS PARA 'OLVIDASTE TU CONTRASEÑA' --- */
.forgot-pass {
    color: rgb(255, 255, 255) !important;     
    margin-left: 0;
    font-weight: 600;
    margin-top: 15px;
}

/* =========================================
   5. BOTONES Y SOCIAL
   ========================================= */
button {
    border-radius: 50px;
    border: none;
    background: var(--button);
    color: var(--text-main);
    font-size: 12px;
    font-weight: bold;
    padding: 15px 50px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 65, 108, 0.4);
    background: rgb(18 131 116);
}

button:active {
    transform: scale(0.95);
}

button.ghost {
    background: var(--button); 
    border: 1px solid var(--bg-color);
    box-shadow: none;
}

button.ghost:hover {
    background: rgb(18 131 116);
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 45px;
    width: 45px;
    color: var(--text-main);
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-container a:hover {
    color: var(--orangeUTE); /* Actualizado */
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* =========================================
   6. FORMULARIOS E INPUTS
   ========================================= */
form {
    background-color: var(--orangeUTE); /* Actualizado */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

.input-group {
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orangeUTE); /* Actualizado */
    transition: color 0.3s ease;
    font-size: 1.1em;
}

input {
    background-color: var(--input-bg);
    border: 2px solid transparent;
    padding: 15px 15px 15px 45px;
    width: 100%;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: var(--text-black);
    transition: all 0.3s ease;
}

input::placeholder {
    color: #a0aec0;
}

input:focus {
    background-color: var(--text-main);
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 65, 108, 0.1);
}

input:focus + i {
    color: #86001f;
}

/* =========================================
   7. LÓGICA DE ANIMACIÓN (SLIDER)
   ========================================= */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

/* Contenedor Sign In */
.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

/* Contenedor Sign Up */
.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%, 49.99% { opacity: 0; z-index: 1; }
    50%, 100% { opacity: 1; z-index: 5; }
}

/* Overlay (Panel de color deslizante) */
.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    border-radius: 0 20px 20px 0;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
    border-radius: 20px 0 0 20px;
}

.overlay {
    background: var(--primary-gradient);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: var(--orangeUTE); /* Actualizado */
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
    color: var(--orangeUTE); /* Actualizado */
}

.overlay-left {
    transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* --- CAMBIO: AJUSTES DE ESPACIADO PARA REDES SOCIALES --- */
.social-text {
    padding: 0;            /* Eliminado padding excesivo */
    margin: 20px 0 5px 0;  /* Espacio superior 20px, inferior 5px (más junto) */
    font-size: 1rem;
    color: var(--text-main);
}

.social-media {
    display: flex;
    justify-content: center;
    margin-bottom: 20px; /* Espacio extra abajo si es necesario */
}

.social-icon {
    height: 46px;
    width: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.45rem;
    color: var(--orangeUTE); /* Actualizado (opcional, para que combine con el tema) */
    border-radius: 50%;
    border: 1px solid var(--text-main);
    background: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.social-icon:hover {
    color: #4481eb;
    border-color: #4481eb;
}

/* Imágenes opcionales dentro del overlay */
.image {
    width: 70%;
    margin-bottom: 20px;
    display: none;
}

@media (min-width: 769px) {
    .image { display: block; }
}

/* =========================================
   8. RESPONSIVE (MÓVIL)
   ========================================= */
.mobile-text {
    display: none;
    margin-top: 25px;
}
.mobile-text p {
    color: var(--text-main);
    font-size: 14px;
}
.mobile-text a {
    color: var(--secondary-color);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        border-radius: 0;
        box-shadow: none;
        width: 100%;
        min-height: 100vh;
    }
    
    .overlay-container {
        display: none; 
    }
    
    .sign-in-container, .sign-up-container {
        width: 100%;
        position: absolute;
        padding: 0 30px;
        background-color: var(--orangeUTE); /* Actualizado */
    }

    form {
        padding: 0 20px;
    }

    h1 {
        font-size: 28px;
    }

    .mobile-text {
        display: block;
    }

    .sign-in-container {
        z-index: 2; opacity: 1;
    }
    .sign-up-container {
        z-index: 1; opacity: 0;
    }
    
    .container.right-panel-active .sign-in-container {
        transform: translateX(0);
        opacity: 0; z-index: 1; pointer-events: none;
    }
    .container.right-panel-active .sign-up-container {
        transform: translateX(0);
        opacity: 1; z-index: 5; pointer-events: all;
        animation: fadein 0.5s;
    }
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}