/* ============================================================
   CssMultiLogin.css - Login unificado Multi-Empresas
   Diseno Glass Teal moderno (mismo del setup)
   ============================================================ */

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

html, body {
    min-height: 100vh;
    font-family: 'Calibri', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.me-body {
    background: linear-gradient(135deg, #0F766E 0%, #0E7490 50%, #1E40AF 100%);
    min-height: 100vh;
    padding: 20px 20px 80px;
    position: relative;
    overflow-x: hidden;
}

/* Blobs decorativos */
.me-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.me-blob-1 {
    top: -100px;
    left: -100px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.12);
}
.me-blob-2 {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(45, 212, 191, 0.18);
}

/* Wrap principal */
.me-wrap {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Card con dos paneles */
.me-card {
    display: flex;
    max-width: 920px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* Panel izquierdo - branding */
.me-left {
    flex: 1;
    padding: 48px 40px;
    color: white;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.me-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.me-logo-box {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #14B8A6, #06B6D4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.me-title {
    font-size: 32px;
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.me-tagline {
    color: #FEF3C7;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.me-credits {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 18px;
    margin-top: auto;
}
.me-credits p {
    color: #FEF3C7;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.6;
}

/* Panel derecho - formulario */
.me-right {
    width: 380px;
    padding: 48px 36px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.me-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1E40AF;
    margin-bottom: 6px;
}

.me-form-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 22px;
    letter-spacing: -0.3px;
}

/* Flash */
.me-flash {
    display: none;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    align-items: center;
    gap: 8px;
}
.me-flash-show {
    display: flex;
}
.me-flash-error {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}
.me-flash-success {
    background: #DCFCE7;
    border: 1px solid #86EFAC;
    color: #166534;
}

/* Form groups */
.me-form-group {
    margin-bottom: 16px;
}

.me-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.me-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.me-input-icon {
    position: absolute;
    left: 14px;
    color: #1E40AF;
    font-size: 15px;
    pointer-events: none;
}

.me-input-wrap input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-family: 'Calibri', sans-serif;
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    background: white;
    transition: all 0.2s ease;
}

.me-input-wrap input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.me-input-wrap input:focus {
    outline: none;
    border-color: #1E40AF;
    background: #FFFBEB;
    box-shadow: 0 0 0 3px rgba(30, 64, 200, 0.12);
}

/* Toggle password visibility */
.me-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1E40AF;
    font-size: 16px;
    padding: 4px;
}
.me-toggle-pass:hover {
    color: #1E3A8A;
}

/* Boton submit */
.me-submit-btn {
    width: 100%;
    margin-top: 8px;
    background: #1E40AF;
    color: white;
    padding: 13px;
    border: none;
    border-radius: 8px;
    font-family: 'Calibri', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.me-submit-btn:hover {
    background: #1E3A8A;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.me-submit-btn:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.me-note {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 18px;
    font-weight: 600;
}

/* Footer */
.me-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
}

/* Responsive */
@media (max-width: 820px) {
    .me-card {
        flex-direction: column;
        max-width: 460px;
    }
    .me-right {
        width: 100%;
    }
    .me-left {
        padding: 36px 28px;
    }
    .me-right {
        padding: 36px 28px;
    }
}

@media (max-width: 480px) {
    .me-title {
        font-size: 26px;
    }
}

/* ============================================================
   MODAL: ACCOUNT BLOCKED / SUSPENDED
   Se muestra cuando el cliente no tiene status active
   ============================================================ */
.me-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.me-modal-overlay.me-modal-show {
    display: flex;
    animation: meFadeIn 0.25s ease-out;
}
@keyframes meFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.me-modal-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 28px;
    text-align: center;
    animation: meSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes meSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.me-modal-icon-wrap {
    margin-bottom: 18px;
}
.me-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DC2626, #F59E0B);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: white;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45);
    animation: mePulse 1.6s ease-in-out infinite;
}
@keyframes mePulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(220, 38, 38, 0.45); }
    50%      { box-shadow: 0 12px 40px rgba(220, 38, 38, 0.65); }
}

.me-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.me-modal-msg {
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
    margin-bottom: 22px;
}
.me-modal-msg b {
    color: #0F172A;
    font-weight: 800;
}

.me-modal-contact {
    background: #FFFBEB;
    border: 1.5px dashed #F59E0B;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: left;
}
.me-modal-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
}
.me-modal-contact-row i {
    width: 28px;
    height: 28px;
    background: #1E40AF;
    color: white;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.me-modal-btn {
    background: #1E40AF;
    color: white;
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-family: 'Calibri', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.me-modal-btn:hover {
    background: #1E3A8A;
    box-shadow: 0 8px 22px rgba(30, 64, 175, 0.45);
    transform: translateY(-1px);
}
