/* ── Definedge UCC Enrollment — Premium Styles ─────────────────────────── */
:root {
    --lp-ucc-primary: #e63329;
    --lp-ucc-primary-hover: #c0261d;
    --lp-ucc-glass: rgba(255, 255, 255, 0.85);
    --lp-ucc-text: #1f2937;
    --lp-ucc-text-light: #6b7280;
    --lp-ucc-shadow: 0 10px 30px -5px rgba(230, 51, 41, 0.3);
}

/* ─────────────────────────────────────────────────────────────────────
   1. BUTTON
───────────────────────────────────────────────────────────────────── */
.lp-ucc-wrap { margin: 24px 0; }

.lp-ucc-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 32px;
    background: var(--lp-ucc-primary);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: var(--lp-ucc-shadow);
}

.lp-ucc-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1;
}

.lp-ucc-btn-icon {
    transition: transform 0.3s ease;
}

.lp-ucc-btn:hover {
    background: var(--lp-ucc-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(230, 51, 41, 0.4);
}

.lp-ucc-btn:hover .lp-ucc-btn-icon {
    transform: translateX(5px);
}

.lp-ucc-btn:active {
    transform: translateY(-1px);
}

.lp-ucc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ─────────────────────────────────────────────────────────────────────
   2. SPINNER
───────────────────────────────────────────────────────────────────── */
.lp-ucc-spinner {
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lp-ucc-spin 0.8s linear infinite;
}
@keyframes lp-ucc-spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────────────
   3. MODAL OVERLAY
───────────────────────────────────────────────────────────────────── */
.lp-ucc-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: lp-fade-in 0.4s ease forwards;
}

@keyframes lp-fade-in { to { opacity: 1; } }

/* ─────────────────────────────────────────────────────────────────────
   4. MODAL BOX
───────────────────────────────────────────────────────────────────── */
.lp-ucc-modal {
    position: relative;
    background: var(--lp-ucc-glass);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 50px 40px 40px;
    max-width: 440px; width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    animation: lp-pop-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lp-pop-in {
    to { transform: translateY(0) scale(1); }
}

.lp-ucc-modal-header { margin-bottom: 24px; }
.lp-ucc-modal-icon {
    display: inline-flex;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
    margin-bottom: 16px;
}

.lp-ucc-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

.lp-ucc-modal-text {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 32px;
}

.lp-ucc-modal-text strong { color: var(--lp-ucc-primary); }

.lp-ucc-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-ucc-modal-login {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: var(--lp-ucc-primary);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-ucc-modal-login:hover {
    background: var(--lp-ucc-primary-hover);
    transform: scale(1.02);
    color: #fff;
    text-decoration: none;
}

.lp-ucc-modal-register {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-ucc-modal-register:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    text-decoration: none;
}

.lp-ucc-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0,0,0,0.05); border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 1.2rem; color: #6b7280;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    line-height: 0; transition: all 0.2s;
}
.lp-ucc-close:hover { background: rgba(0,0,0,0.1); color: #111; }

/* ─────────────────────────────────────────────────────────────────────
   6. STEP BADGE — "1 Sign In → 2 UCC Verify"
───────────────────────────────────────────────────────────────────── */
.lp-ucc-step-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -12px 0 24px;
    flex-wrap: wrap;
}

.lp-step {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s;
}

.lp-step.active {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.lp-step.done {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.lp-step-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────────
   7. POPUP STEP PANELS
───────────────────────────────────────────────────────────────────── */
.lp-popup-step {
    transition: opacity 0.2s ease;
}

/* Blue login button (WordPress SSO — direct <a> fallback) */
#lp-ucc-wp-login-link {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
#lp-ucc-wp-login-link:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #fff;
    text-decoration: none;
}

/* ── Style the [openid_connect_generic_login_button] shortcode output ── */
#lp-ucc-login-btn-wrap .openid-connect-generic-login-button,
#lp-ucc-login-btn-wrap a[href*="openid-connect-authorize"] {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 52px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

#lp-ucc-login-btn-wrap .openid-connect-generic-login-button:hover,
#lp-ucc-login-btn-wrap a[href*="openid-connect-authorize"]:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
    color: #fff !important;
    text-decoration: none !important;
    transform: scale(1.02) !important;
}

/* Red/brand verify button (Definedge UCC SSO) */
.lp-ucc-verify-btn {
    background: linear-gradient(135deg, #e63329 0%, #c0261d 100%) !important;
    box-shadow: 0 4px 14px rgba(230, 51, 41, 0.35) !important;
}
.lp-ucc-verify-btn:hover {
    background: linear-gradient(135deg, #f04740 0%, #d42e25 100%) !important;
    box-shadow: 0 6px 20px rgba(230, 51, 41, 0.45) !important;
}

/* Icon in lp-icon-login uses blue, lp-icon-ucc keeps red */
.lp-icon-login {
    border: 1.5px solid #dbeafe;
    background: #eff6ff !important;
}
.lp-icon-ucc {
    border: 1.5px solid #fecaca;
    background: #fef2f2 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   5. GO BACK BUTTON
───────────────────────────────────────────────────────────────────── */
.lp-ucc-go-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.lp-ucc-go-back:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111;
    text-decoration: none;
    transform: translateX(-3px);
}

