* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: #eef3f8;
    color: #1e293b;
}

/* Contenedor principal */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(18, 190, 226, 0.24), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 35%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Panel general */
.login-panel {
    width: 100%;
    max-width: 1120px;
    min-height: 660px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Área izquierda */
.login-brand-area {
    position: relative;
    padding: 56px;
    background:
        linear-gradient(145deg, rgba(15, 76, 129, 0.97), rgba(7, 29, 53, 0.99)),
        url("../img/bg-data.jpg");
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.login-brand-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.45;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.brand-logo-box {
    width: 128px;
    height: 128px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.brand-logo {
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
}

.brand-content h1 {
    font-size: 42px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.brand-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #dbeafe;
    margin-bottom: 36px;
}

/* Tarjeta analítica */
.analytics-card {
    width: 100%;
    max-width: 430px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.analytics-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.analytics-header span {
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
}

.analytics-header i {
    font-size: 22px;
    color: #5eead4;
}

.chart-bars {
    height: 130px;
    display: flex;
    align-items: end;
    gap: 14px;
    padding: 10px 0;
}

.chart-bars span {
    display: block;
    width: 100%;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, #5eead4, #ffffff);
    opacity: 0.9;
    animation: growBar 1.2s ease forwards;
}

@keyframes growBar {
    from {
        height: 0;
        opacity: 0.3;
    }
}

.analytics-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.analytics-footer div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
}

.analytics-footer small {
    display: block;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.analytics-footer strong {
    font-size: 20px;
    color: #ffffff;
}

/* Área derecha */
.login-form-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-title {
    text-align: left;
    margin-bottom: 32px;
}

.icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #ecfdf5;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.login-title h2 {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.6px;
}

.login-title p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
}

/* Alertas */
.custom-alert {
    border-radius: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

/* Formularios */
.form-group-custom {
    margin-bottom: 22px;
}

.form-group-custom label {
    display: block;
    font-size: 14px;
    color: #334155;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-box {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.input-box i {
    font-size: 18px;
    color: #64748b;
}

.input-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: 15px;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.input-box:focus-within {
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.input-box:focus-within i {
    color: #0f766e;
}

/* Opciones */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 14px;
}

.remember-box {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
}

.remember-box input {
    accent-color: #0f766e;
}

.forgot-link {
    text-decoration: none;
    color: #0f766e;
    font-weight: 600;
}

.forgot-link:hover {
    color: #115e59;
    text-decoration: underline;
}

/* Botón */
.btn-login {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 16px 34px rgba(20, 184, 166, 0.28);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(20, 184, 166, 0.36);
}

.btn-login i {
    transition: transform 0.25s ease;
}

.btn-login:hover i {
    transform: translateX(4px);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
}

.login-footer p {
    font-size: 12.5px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 992px) {
    .login-panel {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .login-brand-area {
        padding: 42px;
        min-height: 420px;
    }

    .brand-content h1 {
        font-size: 34px;
    }

    .login-form-area {
        padding: 42px;
    }
}

@media (max-width: 576px) {
    .login-wrapper {
        padding: 12px;
    }

    .login-panel {
        border-radius: 22px;
    }

    .login-brand-area {
        padding: 32px 24px;
    }

    .brand-logo-box {
        width: 104px;
        height: 104px;
        border-radius: 22px;
        margin-bottom: 24px;
    }

    .brand-logo {
        max-width: 78px;
        max-height: 78px;
    }

    .brand-content h1 {
        font-size: 28px;
    }

    .analytics-footer {
        grid-template-columns: 1fr;
    }

    .login-form-area {
        padding: 32px 24px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

.password-box {
    position: relative;
}

.btn-show-password {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.btn-show-password:hover {
    color: #0f766e;
}
/* Recuperación de contraseña */
.single-login-panel {
    max-width: 560px;
    min-height: auto;
    grid-template-columns: 1fr;
}

.full-login-form {
    padding: 48px;
}

.full-login-form .login-card {
    max-width: 440px;
}


/* Banner PWA: Agregar a pantalla principal en celular */
#bizdatosInstallBanner { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 9999; display: flex; justify-content: center; pointer-events: none; }
.bizdatos-install-card { width: min(560px, 100%); display: flex; align-items: center; gap: 12px; background: #ffffff; color: #172033; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.24); padding: 12px; pointer-events: auto; border: 1px solid rgba(15,23,42,.10); }
.bizdatos-install-card img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.bizdatos-install-text { flex: 1; line-height: 1.2; }
.bizdatos-install-text strong { display: block; font-size: 15px; }
.bizdatos-install-text span { display: block; font-size: 12px; color: #64748b; margin-top: 3px; }
#bizdatosInstallBtn { border: 0; border-radius: 999px; padding: 8px 12px; background: #0f766e; color: #fff; font-weight: 700; font-size: 12px; }
#bizdatosInstallClose { border: 0; background: #f1f5f9; color: #334155; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; }
@media (min-width: 768px) { #bizdatosInstallBanner { display: none; } }
