/* =========================================================
   LOGIN MODAL — BusyBeaver
   Footer trigger button + modal overlay.
   Self-contained. Zero dependencies pe alte pagini.
   ========================================================= */

/* ── FOOTER TRIGGER BUTTON ── */
.footer-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid rgba(200, 164, 78, 0.35);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body, 'Nunito', sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}
.footer-login-btn:hover {
    border-color: var(--color-gold, #C8A44E);
    color: var(--color-gold, #C8A44E);
    background: rgba(200, 164, 78, 0.06);
}
.footer-login-btn svg { flex-shrink: 0; }

/* ── OVERLAY ── */
.lm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lm-overlay[hidden] { display: none; }
.lm-overlay.lm-is-visible .lm-backdrop { opacity: 1; }
.lm-overlay.lm-is-visible .lm-card { opacity: 1; transform: translateY(0) scale(1); }

/* ── BACKDROP ── */
.lm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ── CARD ── */
.lm-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: #141414;
    border: 1px solid rgba(200, 164, 78, 0.2);
    border-radius: 16px;
    padding: 28px 28px 22px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ── CARD HEADER ── */
.lm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.lm-logo img { display: block; height: 28px; width: auto; }
.lm-close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.06);
    border: none; border-radius: 50%;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.lm-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── INTRO ── */
.lm-intro { margin-bottom: 20px; }
.lm-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 20px; font-weight: 800; color: #fff;
    margin: 0 0 4px; letter-spacing: -0.02em;
}
.lm-subtitle {
    font-family: var(--font-body, 'Nunito', sans-serif);
    font-size: 13px; color: rgba(255,255,255,0.45); margin: 0;
}

/* ── OPTIONS ── */
.lm-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.lm-option {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    cursor: pointer;
}
.lm-option:hover {
    border-color: rgba(200,164,78,0.5);
    background: rgba(200,164,78,0.06);
    transform: translateX(3px);
}
.lm-option-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.2s;
}
.lm-option--client     .lm-option-icon { background: rgba(200,164,78,0.12); color: #C8A44E; }
.lm-option--admin-app  .lm-option-icon { background: rgba(100,160,240,0.10); color: #7eb4f0; }
.lm-option--admin-site .lm-option-icon { background: rgba(120,200,150,0.10); color: #7ac896; }
.lm-option--client:hover     .lm-option-icon { background: rgba(200,164,78,0.20); }
.lm-option--admin-app:hover  .lm-option-icon { background: rgba(100,160,240,0.20); }
.lm-option--admin-site:hover .lm-option-icon { background: rgba(120,200,150,0.20); }

.lm-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lm-option-label {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -0.01em;
}
.lm-option-desc {
    font-family: var(--font-body, 'Nunito', sans-serif);
    font-size: 12px; color: rgba(255,255,255,0.4);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lm-option-arrow { color: rgba(255,255,255,0.2); flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.lm-option:hover .lm-option-arrow { color: var(--color-gold, #C8A44E); transform: translateX(2px); }

/* ── FOOTER NOTE ── */
.lm-footer-note {
    text-align: center;
    font-family: var(--font-body, 'Nunito', sans-serif);
    font-size: 11px; color: rgba(255,255,255,0.2); margin: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lm-footer-note::before, .lm-footer-note::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.07);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .lm-card { padding: 22px 20px 18px; }
    .lm-option-desc { white-space: normal; }
}