/* JUEBLO v37 - Estilos de Autenticación */

/* --- AUTOCOMPLETADO GEOGRÁFICO --- */
.rural-suggest-wrapper {
    position: relative; 
    width: 100%;
    z-index: 50;
}

.rural-suggest-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
}

.suggest-item {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s ease;
    text-align: left;
}

.suggest-item:last-child { border-bottom: none; }

.suggest-item:hover {
    background-color: #f4f9f4;
    color: #2d5a27;
    font-weight: 600;
    padding-left: 22px;
}

/* Scrollbar fina */
.rural-suggest-list::-webkit-scrollbar { width: 6px; }
.rural-suggest-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 0 12px 12px 0; }
.rural-suggest-list::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }


/* --- BOTÓN RESET (X) EN INPUTS --- */
.reset-input-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    z-index: 60;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.reset-input-btn:hover { background: #c0392b; }


/* --- ESTILOS LOGIN / REGISTRO GENERAL --- */

/* Enlace sutil */
.auth-link {
    color: #666;
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.2s;
    border-bottom: 1px dotted #ccc;
}
.auth-link:hover {
    color: #2d5a27;
    border-bottom: 1px solid #2d5a27;
}

/* Separador "o" */
.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 15px 0;
}
.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}
.auth-separator:not(:empty)::before { margin-right: .5em; }
.auth-separator:not(:empty)::after { margin-left: .5em; }

/* --- CONTENEDOR DE BOTONES (Igualdad de Ancho) --- */
.auth-btn-container {
    width: 100%;
    max-width: 320px; /* Ancho máximo para que no se desmadre en PC */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Forzamos a los botones dentro del contenedor a llenar el ancho */
.auth-btn-container .btn-main,
.auth-btn-container .btn-outline {
    width: 100% !important; 
    box-sizing: border-box;
}

/* Botón Outline (Crear Cuenta) */
.btn-outline {
    padding: 15px;
    border: 2px solid #2d5a27;
    background: transparent;
    color: #2d5a27;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: #f4f9f4;
    transform: translateY(-2px);
}

/* Animación de entrada para el icono */
@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}