/* ==========================================================================
   STIGMOVA PLANNER — GLOBAL LOGIN MODAL & OTP LIGHTWEIGHT STYLESHEET
   Încărcat global pentru modala „Intră în Cont” din header/footer pe toate paginile.
   ========================================================================== */

:root {
    --stp-font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --stp-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --stp-gold: #C49A6C;
    --stp-gold-light: #DFBF99;
    --stp-gold-dark: #9A7432;
    --stp-gold-bg: rgba(196, 154, 108, 0.12);
    --stp-gold-border: rgba(196, 154, 108, 0.35);
    --stp-dark: #111827;
    --stp-dark-card: #1F2937;
    --stp-dark-surface: #0B0F17;
    --stp-ivory: #FDFBF7;
    --stp-gray-bg: #F9FAFB;
    --stp-gray-border: #E5E7EB;
    --stp-gray-text: #4B5563;
    --stp-gray-muted: #6B7280;
    --stp-shadow-gold: 0 10px 25px -5px rgba(196, 154, 108, 0.25);
    --stp-shadow-card: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
}

.stp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: var(--stp-font-sans, 'Montserrat', sans-serif);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #C49A6C !important;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
}

.stp-badge::before,
.stp-badge::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1.5px;
    background-color: #C49A6C;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .stp-badge {
        font-size: 10px;
        gap: 10px;
    }
    .stp-badge::before,
    .stp-badge::after {
        width: 22px;
    }
}

.stp-badge.stp-badge-dark {
    background: transparent !important;
    border: none !important;
    color: #C49A6C !important;
}

.stp-badge-dot {
    display: none !important;
}

.stp-title-serif {
    font-family: var(--stp-font-serif) !important;
}

.stp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--stp-gold);
    color: #111827 !important;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: var(--stp-shadow-gold);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: var(--stp-font-sans);
}

.stp-btn-primary:hover {
    background-color: var(--stp-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(196, 154, 108, 0.35);
}

.stp-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
    font-family: var(--stp-font-sans);
}

.stp-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.stp-form-group {
    margin-bottom: 18px;
}

.stp-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #E2E8F0;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stp-form-label span.req {
    color: var(--stp-gold);
}

.stp-form-input, .stp-form-select {
    width: 100%;
    background: #0B0F17;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    font-family: var(--stp-font-sans);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stp-form-input:focus, .stp-form-select:focus {
    border-color: var(--stp-gold);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.2);
}

.stp-hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    pointer-events: none;
}

.stp-otp-grid {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
}

.stp-otp-digit {
    width: 42px;
    height: 50px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    font-family: var(--stp-font-serif);
    background: #0B0F17;
    border: 1.5px solid #334155;
    border-radius: 10px;
    color: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    padding: 0;
}

@media (min-width: 480px) {
    .stp-otp-grid {
        gap: 10px;
    }
    .stp-otp-digit {
        width: 48px;
        height: 56px;
        font-size: 24px;
        border-radius: 12px;
    }
}

.stp-otp-digit:focus {
    border-color: var(--stp-gold);
    box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.3);
    transform: scale(1.05);
}

.stp-alert-error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.4);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #FCA5A5;
    line-height: 1.5;
}

.stp-alert-error strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.stp-alert-error .stp-r28-contacts {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    font-size: 12px;
    color: #FEE2E2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stp-alert-error .stp-r28-contacts a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 700;
}

.stp-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 23, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.stp-modal-backdrop.is-open {
    display: flex;
    animation: stpFadeIn 0.25s ease;
}

.stp-modal-card {
    background: #1E293B;
    border: 1.5px solid rgba(196, 154, 108, 0.45);
    border-radius: 24px;
    padding: 32px 24px;
    width: 100%;
    max-width: 480px;
    color: #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    box-sizing: border-box;
}

@media (min-width: 500px) {
    .stp-modal-card {
        padding: 40px 32px;
    }
}

.stp-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stp-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

@keyframes stpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   Fereastra „Intră în cont” (SPEC_018): deschisă, pe sistemul --stm-*.
   Selectorii cu ID bat și regulile mai vechi din planner.css (pagina /servicii/).
   -------------------------------------------------------------------------- */
#stp-global-login-modal { padding: 12px; overflow-y: auto; align-items: safe center; }
#stp-global-login-modal .stp-modal-card { max-width: 420px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 28px 20px 22px; border: 1px solid #E3E6EB; border-radius: 20px; background: #FFFFFF; color: #111827; box-shadow: 0 30px 60px rgba(14, 19, 29, 0.35); }
#stp-global-login-modal .stp-modal-close-btn { top: 10px; right: 10px; width: 40px; height: 40px; background: #F5F6F8; color: #111827; }
#stp-global-login-modal .stp-modal-title { margin: 14px 0 8px; font-family: var(--stp-font-serif); font-size: 23px; font-weight: 600; line-height: 1.25; text-align: center; color: #111827; }
#stp-global-login-modal .stp-modal-lead { margin: 0 0 18px; font-size: 13px; line-height: 1.6; text-align: center; color: #596273; }
#stp-global-login-modal .stp-modal-lead strong { color: #111827; word-break: break-all; }
#stp-global-login-modal .stp-form-label { text-align: left; color: #111827; }
#stp-global-login-modal .stp-form-input { min-height: 50px; margin: 0; border: 1px solid #CDD2DA; border-radius: 10px; background: #FFFFFF; font-size: 16px; color: #111827; }
#stp-global-login-modal .stp-form-input:focus { border-color: #0E131D; }
#stp-global-login-modal .stp-btn-primary { width: 100%; min-height: 52px; padding: 10px 16px; border-radius: 10px; background: #0E131D; box-shadow: none; color: #FFFFFF !important; transform: none; }
#stp-global-login-modal .stp-btn-primary:disabled { opacity: 0.65; cursor: wait; }
#stp-global-login-modal .stp-btn-secondary { width: 100%; min-height: 46px; margin-top: 10px; padding: 8px 14px; border: 1px solid #CDD2DA; border-radius: 10px; background: #FFFFFF; font-size: 11px; color: #111827 !important; }
#stp-global-login-modal .stp-modal-link { display: block; margin: 10px auto 0; padding: 8px; border: 0; background: none; font-size: 12px; color: #596273; text-decoration: underline; cursor: pointer; }
#stp-global-login-modal .stp-modal-switch { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; text-align: center; color: #596273; }
#stp-global-login-modal .stp-modal-switch a { font-weight: 700; color: #85622A; text-decoration: underline; }
#stp-global-login-modal .stp-otp-grid { gap: 6px; margin: 4px 0 18px; }
#stp-global-login-modal .stp-otp-digit { width: 44px; max-width: 14%; height: 52px; border: 1px solid #CDD2DA; background: #FFFFFF; color: #111827; }
#stp-global-login-modal .stp-otp-digit:focus { border-color: #0E131D; }
#stp-global-login-modal .stp-alert-error { margin: 44px 0 0; border-color: #F3B7B7; background: #FEF2F2; color: #991B1B; text-align: left; }
#stp-global-login-modal .stp-alert-error strong, #stp-global-login-modal .stp-alert-error .stp-r28-contacts, #stp-global-login-modal .stp-alert-error .stp-r28-contacts a { color: #7F1D1D; }
#stp-global-login-modal .stp-alert-error a { color: #85622A; }
