/* =============================================================================
   ACEP MADAGASCAR — Login Page & Modal Styles
   ============================================================================= */

:root {
    --acep-primary:       #0d9488;
    --acep-primary-dark:  #0f766e;
    --acep-primary-light: #14b8a6;
    --acep-gold:          #f0b429;
    --acep-dark:          #1a2332;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body, html { height: 100%; font-family: 'Inter', sans-serif; }


/* ── PAGE BACKGROUND ────────────────────────────────────────────────────────── */

.login-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.page-bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, 0.75) 0%,
        rgba(26, 35, 50, 0.50) 40%,
        rgba(26, 35, 50, 0.30) 70%,
        rgba(26, 35, 50, 0.60) 100%
    );
}


/* ── MAIN CONTENT AREA ──────────────────────────────────────────────────────── */

.main-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    min-height: 0;
}


/* ── LEFT SIDE — ACEP INFO ──────────────────────────────────────────────────── */

.info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 4rem;
    margin-right: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 180, 41, 0.2);
    border: 1px solid rgba(240, 180, 41, 0.4);
    color: var(--acep-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span { color: var(--acep-gold); }

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--acep-primary-light);
    margin-bottom: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 550px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.services-row {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 148, 136, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acep-primary-light);
    font-size: 0.9rem;
}


/* ── RIGHT SIDE — CTA CARD (fixe) ───────────────────────────────────────────── */

.login-section {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 560px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.login-inner {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.login-logo img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* CTA card — dark glassmorphism (cohérent avec les modals) */
.login-cta-card {
    background: rgba(10, 14, 26, 0.52);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border-radius: 12px;
    padding: 2.5rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.cta-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.6rem;
    color: #5eead4;
}

.cta-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
}

.cta-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2rem;
    text-align: left;
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

.cta-feature-item i {
    color: #5eead4;
    font-size: 0.85rem;
    width: 16px;
    flex-shrink: 0;
}

.copyright {
    text-align: center;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* ── SHARED FORM ELEMENTS ───────────────────────────────────────────────────── */

.form-label {
    color: #374151;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
    display: block;
}

.input-group-custom {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.3s;
    z-index: 1;
}

.form-control-login {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    background: #f9fafb;
    width: 100%;
    font-family: inherit;
    color: var(--acep-dark);
}

.form-control-login:focus {
    border-color: var(--acep-primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
    background: #fff;
    outline: none;
}

.input-group-custom:focus-within .input-icon {
    color: var(--acep-primary);
}

/* Password toggle button */
.pwd-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}
.pwd-toggle:hover { color: var(--acep-primary); }
.form-control-login.has-toggle { padding-right: 2.75rem; }

.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.form-check-input:checked {
    background-color: var(--acep-primary);
    border-color: var(--acep-primary);
}

.remember-label {
    color: #4b5563;
    font-size: 0.8rem;
    margin-left: 0.25rem;
    cursor: pointer;
}

.btn-login {
    background: linear-gradient(135deg, var(--acep-primary-dark), var(--acep-primary), var(--acep-primary-light));
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 12px -2px rgba(13, 148, 136, 0.4);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(13, 148, 136, 0.5);
    color: white;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-login.btn-warning-variant {
    background: linear-gradient(135deg, #d97706, #f0b429);
    box-shadow: 0 4px 12px -2px rgba(240, 180, 41, 0.4);
}

.btn-login.btn-warning-variant:hover:not(:disabled) {
    box-shadow: 0 6px 20px -4px rgba(240, 180, 41, 0.5);
}

.btn-text-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
    font-family: inherit;
    transition: color 0.2s;
    display: block;
    margin-top: 0.75rem;
}
.btn-text-link:hover { color: var(--acep-primary); }

.help-section {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.help-section p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.help-section a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
}

.help-section a:hover { color: #fff; }


/* ── INLINE ALERT — dark glass context (CTA card + modals) ─────────────────── */

.alert-box {
    border-radius: 7px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.alert-box i { flex-shrink: 0; margin-top: 1px; }

/* Default dark variants (used inside dark glass surfaces) */
.alert-box--danger {
    background: rgba(220, 38, 38, 0.18);
    color: #fca5a5;
    border-left: 3px solid #ef4444;
}

.alert-box--warning {
    background: rgba(245, 158, 11, 0.18);
    color: #fde68a;
    border-left: 3px solid #f59e0b;
}

.alert-box--info {
    background: rgba(20, 184, 166, 0.15);
    color: #5eead4;
    border-left: 3px solid #14b8a6;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Glass card inside modal — dark glassmorphism (référence Login_Form) */
.modal-glass {
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 2.75rem 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    /* Entry animation */
    transform: scale(0.94) translateY(14px);
    transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.modal-overlay.is-open .modal-glass {
    transform: scale(1) translateY(0);
}

.modal-glass--narrow {
    max-width: 420px;
}

/* Close button — light on dark bg */
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    z-index: 2;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* Modal header */
.modal-header-section {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}

/* Icon circles — adapted for dark glass */
.modal-icon-circle.icon--teal {
    background: rgba(20, 184, 166, 0.2);
    color: #5eead4;
    border: 1px solid rgba(94, 234, 212, 0.35);
}

.modal-icon-circle.icon--shield {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(196, 181, 253, 0.35);
}

.modal-icon-circle.icon--warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(252, 211, 77, 0.35);
}

/* Titles — white on dark glass */
.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   FIELD-WRAP — Underline input (style Login_Form)
   ═══════════════════════════════════════════════════════════════════════════════ */

.field-wrap {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin: 1.75rem 0;
    transition: border-color 0.2s;
}

.field-wrap:focus-within {
    border-bottom-color: rgba(255, 255, 255, 0.85);
}

.field-wrap label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    font-weight: 400;
    pointer-events: none;
    transition: 0.18s ease;
}

/* Float label up when focused or has value */
.field-wrap input:focus   ~ label,
.field-wrap input:not(:placeholder-shown) ~ label {
    font-size: 0.72rem;
    top: -4px;
    transform: translateY(-100%);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.field-wrap input {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #fff;
    font-family: inherit;
    padding: 0;
}

.field-wrap input::placeholder { color: transparent; }

/* Password toggle inside field-wrap */
.field-wrap .pwd-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: color 0.2s;
    z-index: 2;
    line-height: 1;
}
.field-wrap .pwd-toggle:hover { color: rgba(255, 255, 255, 0.9); }

/* Remember-me row on dark bg */
.field-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.5rem 0 1.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.field-check-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.field-check-row input[type="checkbox"] {
    accent-color: #fff;
    width: 15px;
    height: 15px;
    cursor: pointer;
}


/* ── PRIMARY BUTTON (dark modal) — white bg, black text ─────────────────────── */

.btn-modal-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #fff;
    color: #000;
    font-weight: 600;
    border: 2px solid transparent;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    margin-top: 0.5rem;
}

.btn-modal-primary:hover:not(:disabled) {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-modal-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Warning variant (setup modal) */
.btn-modal-warning {
    background: var(--acep-gold);
    color: var(--acep-dark);
    border-color: transparent;
}
.btn-modal-warning:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: var(--acep-gold);
    border-color: var(--acep-gold);
}

/* Muted secondary button */
.btn-modal-secondary {
    display: block;
    width: 100%;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 0.75rem;
    text-align: center;
}
.btn-modal-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Help link below button */
.modal-help-line {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}
.modal-help-line a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
}
.modal-help-line a:hover { color: #fff; }


/* ── OTP INPUT — underline dark style ───────────────────────────────────────── */

.otp-field-wrap {
    position: relative;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0 2rem;
    transition: border-color 0.2s;
}
.otp-field-wrap:focus-within { border-bottom-color: rgba(255, 255, 255, 0.85); }

.otp-input-dark {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.75rem;
    padding: 0.5rem 0 0.5rem 0.75rem; /* compensate letter-spacing */
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Courier New', 'Lucida Console', monospace;
}

.otp-input-dark::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.6rem;
}

.otp-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}



/* ── BACKUP CODE SECTION ─────────────────────────────────────────────────────── */

.backup-code-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.backup-toggle-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
    font-family: inherit;
    transition: color 0.2s;
    text-decoration: underline dotted;
    display: block;
    margin-top: 0.75rem;
}
.backup-toggle-link:hover { color: rgba(255, 255, 255, 0.85); }


/* ── SETUP 2FA ALERT MODAL ──────────────────────────────────────────────────── */

.setup-warning-box {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #fde68a;
    line-height: 1.6;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.setup-warning-box i {
    color: #fcd34d;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.setup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-later {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-later:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
}


/* ── SPINNER ────────────────────────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }
.fa-spin { animation: spin 0.8s linear infinite; }


/* ═══════════════════════════════════════════════════════════════════════════════
   FLASH INFOS BAR
   ═══════════════════════════════════════════════════════════════════════════════ */

.flash-section {
    position: relative;
    z-index: 1;
    padding: 1.25rem 3rem;
    margin-right: 560px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.flash-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.flash-header-icon {
    width: 28px;
    height: 28px;
    background: var(--acep-gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acep-dark);
    font-size: 0.75rem;
}

.flash-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flash-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.flash-scroll::-webkit-scrollbar { height: 4px; }
.flash-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 2px; }
.flash-scroll::-webkit-scrollbar-thumb { background: rgba(13, 148, 136, 0.4); border-radius: 2px; }

.flash-card {
    min-width: 300px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.2s, border-color 0.2s;
}

.flash-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.3);
}

.flash-card-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity 0.2s;
}
.flash-card-img:hover { opacity: 0.8; }

.flash-card-body { padding: 0.875rem; }

.flash-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-card-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-card-date {
    font-size: 0.7rem;
    color: var(--acep-primary-light);
    margin-top: 0.5rem;
}

.no-flash {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════════════════ */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
}

.lightbox-overlay.active { opacity: 1; visibility: visible; }

.lightbox-overlay img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    cursor: default;
}
.lightbox-overlay.active img { transform: scale(1); }

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }


/* ═══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .main-content { flex-direction: column; }
    .info-section { padding: 2rem; margin-right: 0; text-align: center; }
    .info-section .hero-description { max-width: 100%; }
    .services-row { justify-content: center; }
    .login-section {
        position: relative;
        width: 100%;
        top: auto; right: auto; bottom: auto;
        padding: 2rem;
        backdrop-filter: none;
        overflow-y: visible;
    }
    .flash-section { padding: 1rem 2rem; margin-right: 0; }
    .hero-title { font-size: 2.25rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.75rem; }
    .info-section { padding: 1.5rem; }
    .services-row { gap: 1rem; }
    .flash-section { padding: 1rem 1.5rem; }
    .flash-card { min-width: 260px; }
    .login-section { padding: 1.5rem; }
    .login-cta-card { padding: 1.75rem 1.5rem; }
    .modal-glass { padding: 2rem 1.5rem; border-radius: 22px; }
}
