/* --- Estilos Generales --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
}

/* Contenedor Principal (Layout) */
.login-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Sección del Formulario --- */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

/* Selector de País */
.country-selector {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.form-content {
    width: 100%;
    max-width: 360px;
}

/* Logo */
.logo {
    margin-bottom: 24px;
}
.logo-icon {
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

h2 {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

/* Botones Sociales */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    background-color: #ffffff;
    border: 2px solid #335894; /* Color de borde azulado similar */
    border-radius: 6px;
    color: #335894;
    font-size: 14px; /* Tamaño estandarizado */
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    transition: background 0.2s;
}

.btn-social:hover {
    background-color: #f4f7fc;
}

/* Divisor 'o' */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.divider span {
    padding: 0 10px;
    font-size: 14px;
}

/* --- Inputs y Formulario con Etiqueta Flotante (SIN BRINCOS VISUALES) --- */
.input-group {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

.input-group input {
    width: 100%;
    /* Se usa padding de 15px arriba/abajo para compensar el borde inicial de 1px */
    padding: 15px 14px; 
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px; /* Tamaño homogeneizado idéntico a botones sociales */
    color: #1a1a1a;
    outline: none;
    background: transparent;
    transition: border-color 0.2s ease;
}

/* El texto que va a flotar */
.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff; 
    padding: 0 6px;
    color: #666;
    font-size: 14px; /* Mismo tamaño que los botones y placeholder inicial */
    pointer-events: none; 
    transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

/* SOLUCIÓN AL CORTE: Al hacer foco se altera el padding sutilmente (-1px) 
   para absorber el grosor de la línea de 2px sin alterar las dimensiones externas */
.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border: 2px solid #BBBEBF; 
    padding: 14px 13px; /* Absorbe el píxel extra del borde */
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #BBBEBF; 
    font-weight: 500;
}

.forgot-link {
    display: inline-block;
    font-size: 12px;
    color: #1959D2;
    text-decoration: none;
    margin-bottom: 24px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #335894; 
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background-color: #2E4F85;
}

.register-text {
    margin-top: 24px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.register-text a {
    color: #1959D2;
    text-decoration: none;
    font-weight: 500;
}


/* --- Sección del Banner (Móviles por defecto) --- */
.banner-section {
    display: none; 
}


/* --- DESKTOP LAYOUT (Pantallas mayores a 768px) --- */
@media (min-width: 768px) {
    .login-container {
        flex-direction: row; 
    }

    .form-section {
        flex: 1; 
        padding: 60px;
    }

    .banner-section {
        display: block; 
        flex: 1; 
        
        background-image: url('img/Background2.png'); 
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}


/* Tamaños de elementos de imagen */
.img-logo {
    width: 35px;
    height: 35px;
    object-fit: contain; 
    display: block;
}

.btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-icon.icon-google {
    width: 20px;
    height: 20px;
    object-fit: contain; 
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
}


/* --- NUEVOS ESTILOS DEL DESPLEGABLE TIPO CLARA --- */
.country-selector {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    z-index: 100;
}

.selected-country {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
}

.img-arrow {
    width: 13px;
    height: 13px;
    object-fit: contain;
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.country-selector.active .img-arrow {
    transform: rotate(180deg);
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 2px); 
    right: 0;
    background-color: #ffffff;
    border-radius: 10px;    
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.08); 
    list-style: none;
    padding: 6px;          
    width: 140px;          
    display: none;
    flex-direction: column;
    gap: 2px;              
}

.country-selector.active .country-dropdown {
    display: flex;
}

.country-dropdown li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;     
    border-radius: 6px;
    color: #333333;
    font-size: 13.5px;     
    transition: background-color 0.15s ease;
}

.country-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-dropdown li .img-flag {
    width: 18px;           
    height: auto;
}

.country-dropdown li .check-icon {
    display: none;
    color: #335894;
    font-size: 12px;
}

.country-dropdown li.active-country {
    background-color: #f3f5ff; 
    color: #335894;
    font-weight: 500;
}

.country-dropdown li.active-country .check-icon {
    display: inline-block;
}

.country-dropdown li:not(.active-country):hover {
    background-color: #f8f9fa;
}


/* Quita el subrayado por defecto de TODOS los enlaces */
a {
    text-decoration: none;
}

.subtitle{
    font-size: 15px;
    color: #000;
}