/* =========================================================
   EasyBox — Formulario de login  (integrado desde el plugin
   "EasyBox Login Form" v2.2.1)
   ========================================================= */

/* Variables CSS */
.easybox-login-wrapper {
    --primary-blue: #031F95;
    --primary-green: #00761F;
    --light-blue: #4A6FDC;
    --light-green: #00A82D;
    --dark-blue: #021A7A;
    --dark-green: #00661A;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-border: #e0e0e0;
    --gray-text: #666666;
    --shadow-subtle: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Estructura principal - FONDO BLANCO */
.easybox-login-container {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
    position: relative;
    z-index: 1; /* Evita conflictos con cabecera */
    margin-top: 0 !important;
}

/* ===== VERSIÓN DESKTOP (ORIGINAL) ===== */
.easybox-login-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-subtle);
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Sidebar izquierdo - SOLO DESKTOP */
.easybox-login-sidebar {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 60px 50px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Elementos flotantes blancos - SOLO DESKTOP */
.easybox-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-1 { top: 20%; left: 10%; animation-delay: 0s; }
.floating-2 { top: 60%; right: 15%; animation-delay: 2s; }
.floating-3 { bottom: 20%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* Logo - SOLO DESKTOP */
.easybox-login-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.easybox-logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.easybox-logo-text {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--white);
}

.easybox-logo-text span {
    color: var(--light-green);
}

/* Texto de bienvenida - SOLO DESKTOP */
.easybox-welcome-text {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.easybox-welcome-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    color: var(--white);
}

.easybox-welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Características - SOLO DESKTOP */
.easybox-features {
    position: relative;
    z-index: 2;
}

.easybox-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.easybox-feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.9rem;
    color: var(--light-green);
    flex-shrink: 0;
}

.easybox-feature-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Contenido del formulario */
.easybox-login-content {
    padding: 60px 50px;
    background: var(--white);
}

/* Encabezado del formulario */
.easybox-form-header {
    margin-bottom: 40px;
}

.easybox-form-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.easybox-form-header p {
    font-size: 1rem;
    color: var(--gray-text);
}

/* Grupos del formulario - ICONOS JUNTO A LAS ETIQUETAS */
.easybox-form-group {
    margin-bottom: 24px;
}

.easybox-form-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.easybox-form-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.easybox-label-icon {
    color: var(--primary-blue);
    font-size: 1.1rem;
    width: 20px;
    display: flex;
    justify-content: center;
}

/* Inputs sin iconos dentro */
.easybox-form-input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    color: #333;
    box-sizing: border-box;
}

.easybox-form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(3, 31, 149, 0.1);
}

/* Toggle de contraseña */
.easybox-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-text);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.easybox-password-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Opciones del formulario */
.easybox-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
}

.easybox-remember-me {
    display: flex;
    align-items: center;
}

.easybox-remember-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
    cursor: pointer;
}

.easybox-remember-label {
    font-size: 0.9rem;
    color: var(--gray-text);
    cursor: pointer;
    user-select: none;
}

.easybox-forgot-link {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.easybox-forgot-link:hover {
    color: var(--dark-blue);
}

/* Botón de login */
.easybox-btn-login {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.easybox-btn-login:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 118, 31, 0.3);
}

/* Mensajes de error */
.easybox-login-error {
    background: #fee;
    border: 1px solid #f99;
    color: #c00;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.easybox-login-error i {
    font-size: 1rem;
}

/* Sección de registro */
.easybox-register-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-border);
    text-align: center;
}

.easybox-register-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 16px;
}

.easybox-btn-register {
    display: block;
    padding: 14px;
    border-radius: 10px;
    background: var(--gray-light);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--gray-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.easybox-btn-register:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* ===== VERSIÓN MÓVIL - FORMULARIO APP-LIKE ===== */
.easybox-mobile-only {
    display: none;
}

.easybox-mobile-logo {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.easybox-mobile-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(3, 31, 149, 0.2);
}

.easybox-mobile-logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.easybox-mobile-logo-text span {
    color: var(--primary-green);
}

.easybox-mobile-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    text-align: center;
    font-weight: 400;
}

/* Contenedor móvil */
.easybox-mobile-container {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.easybox-mobile-form {
    background: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.easybox-mobile-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.easybox-mobile-form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.easybox-mobile-form-header p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Inputs móviles - más limpios */
.easybox-mobile-input {
    width: 100%;
    padding: 16px;
    border: 1.5px solid var(--gray-border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    background: var(--white);
    color: #333;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.easybox-mobile-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(3, 31, 149, 0.1);
}

.easybox-mobile-input::placeholder {
    color: #999;
}

/* Opciones móviles */
.easybox-mobile-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.easybox-mobile-remember {
    display: flex;
    align-items: center;
}

.easybox-mobile-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-green);
}

.easybox-mobile-remember-label {
    font-size: 0.85rem;
    color: var(--gray-text);
    cursor: pointer;
}

.easybox-mobile-forgot {
    font-size: 0.85rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Botón móvil - más ancho y llamativo */
.easybox-mobile-btn-login {
    background: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.easybox-mobile-btn-login:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 118, 31, 0.3);
}

/* Separador */
.easybox-mobile-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.easybox-mobile-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-border);
    z-index: 1;
}

.easybox-mobile-divider span {
    background: var(--white);
    padding: 0 15px;
    color: var(--gray-text);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

/* Botón registro móvil */
.easybox-mobile-btn-register {
    display: block;
    padding: 14px;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--gray-border);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.easybox-mobile-btn-register:hover {
    background: #f8f9fa;
    border-color: var(--primary-blue);
}

/* Error móvil */
.easybox-mobile-error {
    background: #fee;
    border: 1px solid #f99;
    color: #c00;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.easybox-mobile-error i {
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */

/* Desktop grande */
@media (min-width: 993px) {
    /* Ocultar versión móvil */
    .easybox-mobile-container,
    .easybox-mobile-only {
        display: none !important;
    }

    /* Mostrar versión desktop */
    .easybox-login-box {
        display: grid;
    }

    .easybox-login-sidebar {
        display: block;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .easybox-login-box {
        max-width: 700px;
    }

    .easybox-login-sidebar,
    .easybox-login-content {
        padding: 50px 40px;
    }
}

/* Móvil */
@media (max-width: 768px) {
    /* Ocultar versión desktop */
    .easybox-login-box {
        display: none !important;
    }

    /* Mostrar versión móvil */
    .easybox-mobile-container,
    .easybox-mobile-only {
        display: block !important;
    }

    /* Ajustar contenedor móvil */
    .easybox-login-container {
        padding: 20px 15px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .easybox-mobile-logo {
        margin-bottom: 30px;
    }

    .easybox-mobile-logo-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 18px;
    }

    .easybox-mobile-logo-text {
        font-size: 2rem;
    }

    .easybox-mobile-subtitle {
        font-size: 0.95rem;
    }

    .easybox-mobile-form {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .easybox-mobile-form-header h2 {
        font-size: 1.4rem;
    }

    .easybox-mobile-form-header p {
        font-size: 0.85rem;
    }

    .easybox-mobile-input {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .easybox-login-container {
        padding: 15px;
        padding-top: 50px;
    }

    .easybox-mobile-logo {
        margin-bottom: 25px;
    }

    .easybox-mobile-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 16px;
    }

    .easybox-mobile-logo-text {
        font-size: 1.8rem;
    }

    .easybox-mobile-form {
        padding: 25px 18px;
    }

    .easybox-mobile-form-header h2 {
        font-size: 1.3rem;
    }

    .easybox-mobile-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .easybox-mobile-forgot {
        align-self: flex-end;
    }
}

/* Móvil muy pequeño */
@media (max-width: 360px) {
    .easybox-mobile-logo-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .easybox-mobile-logo-text {
        font-size: 1.6rem;
    }

    .easybox-mobile-form {
        padding: 22px 15px;
    }

    .easybox-mobile-input {
        padding: 12px;
        font-size: 0.9rem;
    }

    .easybox-mobile-btn-login,
    .easybox-mobile-btn-register {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* ── Botones de redes sociales dentro del login ───────────────────────────── */
.easybox-login-wrapper .easybox-social {
    margin-bottom: 20px;
}

.easybox-login-wrapper .easybox-social-btn {
    font-family: 'Poppins', sans-serif;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    border-color: #e0e0e0;
    white-space: nowrap;
}

.easybox-login-wrapper .easybox-social-icon {
    flex: 0 0 auto;
}

.easybox-login-wrapper .easybox-social-btn:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.easybox-login-wrapper .easybox-social-sep {
    font-family: 'Poppins', sans-serif;
    margin: 18px 0 2px;
    color: #999;
}

.easybox-login-wrapper .easybox-social-sep span {
    background: #fff;
    text-transform: none;
}

@media (max-width: 768px) {
    .easybox-login-wrapper .easybox-social-btn {
        padding: 14px 16px;
    }
}
