/* =========================================================
   SOLVEHOST AUTH — DARK GLASSMORPHISM THEME
   Matches reference design: dark bg, glass card, cyan accents
   Loaded via index.phtml AFTER vendor.css so it overrides cleanly.
   ========================================================= */

/* --- Auth page detection --- */
body:has(#ce-loginbox),
body:has(#register-form) {
    background: #0b1329 !important;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif !important;
    padding-top: 0 !important;
    margin: 0 !important;
    min-height: 100vh !important;
}

/* --- Hide default ClientExec header/footer/nav on auth pages --- */
body:has(#ce-loginbox) .header,
body:has(#ce-loginbox) .footer,
body:has(#ce-loginbox) .main-meta,
body:has(#ce-loginbox) .main-menu,
body:has(#ce-loginbox) .header-right,
body:has(#ce-loginbox) .menu-toggle,
body:has(#ce-loginbox) .mobile-menu,
body:has(#ce-loginbox) .bill-topbar,
body:has(#register-form) .header,
body:has(#register-form) .footer,
body:has(#register-form) .main-meta,
body:has(#register-form) .main-menu,
body:has(#register-form) .header-right,
body:has(#register-form) .menu-toggle,
body:has(#register-form) .mobile-menu,
body:has(#register-form) .footer {
    display: none !important;
}

/* --- Center content vertically + horizontally --- */
body:has(#ce-loginbox) .content-page,
body:has(#register-form) .content-page {
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 40px 16px !important;
    box-sizing: border-box !important;
}

/* --- Register: start from top so tall form scrolls normally --- */
body:has(#register-form) .content-page {
    align-items: flex-start !important;
    padding-top: 20px !important;
}

/* --- Ambient grid background pattern --- */
body:has(#ce-loginbox)::before,
body:has(#register-form)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    pointer-events: none;
}

/* --- Glowing ambient orbs --- */
body:has(#ce-loginbox)::after,
body:has(#register-form)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% -10%, rgba(6,182,212,0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 110%, rgba(20,184,166,0.20) 0%, transparent 45%),
        radial-gradient(circle at 50% 40%, rgba(99,102,241,0.15) 0%, transparent 45%);
}

/* --- Glass card (data-table-wrapper) --- */
body:has(#ce-loginbox) .data-table-wrapper,
body:has(#register-form) .data-table-wrapper {
    max-width: 480px !important;
    width: 100% !important;
    margin: auto !important;
    position: relative !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(6, 182, 212, 0.20) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 60px -20px rgba(0,0,0,0.55),
                0 0 25px -5px rgba(6,182,212,0.30) !important;
    overflow: hidden !important;
    color: #fff !important;
}

/* --- Top cyan decorative line --- */
body:has(#ce-loginbox) .data-table-wrapper::before,
body:has(#register-form) .data-table-wrapper::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right, #06b6d4, #14b8a6, #0891b2);
    z-index: 1;
}

/* --- Card header / title --- */
body:has(#ce-loginbox) .data-table-wrapper .head,
body:has(#register-form) .data-table-wrapper .head {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 40px 40px 8px !important;
    text-align: center !important;
}
body:has(#ce-loginbox) .data-table-wrapper .head h1,
body:has(#register-form) .data-table-wrapper .head h1 {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
}
body:has(#ce-loginbox) .data-table-wrapper .head h1 .host-accent,
body:has(#register-form) .data-table-wrapper .head h1 .host-accent {
    color: #22d3ee !important;
}

/* Subtitle */
body:has(#ce-loginbox) .data-table-wrapper .head .subtext,
body:has(#register-form) .data-table-wrapper .head .subtext {
    display: block !important;
    width: 100% !important;
    font-size: 14px !important;
    color: #94a3b8 !important;
    margin: 10px 0 0 0 !important;
    text-align: center !important;
}

/* --- Card body padding --- */
body:has(#ce-loginbox) .data-table-wrapper .cs-padding,
body:has(#register-form) .data-table-wrapper .cs-padding {
    padding: 16px 40px 60px !important;
    background: transparent !important;
}

/* --- Register: wider card (matches reference max-w-3xl) --- */
body:has(#register-form) .data-table-wrapper {
    max-width: 768px !important;
}
/* Widen the container chain so the 768px card isn't capped by a narrow parent */
body:has(#register-form) .content-page,
body:has(#register-form) .container,
body:has(#register-form) .cm-holder {
    width: 100% !important;
    max-width: 100% !important;
}
body:has(#register-form) .data-table-wrapper .cs-padding {
    padding: 16px 44px 48px !important;
}
body:has(#register-form) .data-table-wrapper .head {
    padding: 40px 44px 8px !important;
}

/* --- Force login inner form to full width --- */
body:has(#ce-loginbox) .col-md-6,
body:has(#ce-loginbox) .offset-md-3,
body:has(#ce-loginbox) #ce-loginbox {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
}

/* --- Labels --- */
body:has(#ce-loginbox) label,
body:has(#register-form) label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* --- Inputs --- */
body:has(#ce-loginbox) .form-control,
body:has(#register-form) .form-control {
    height: 52px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 12px !important;
    padding: 0 16px 0 48px !important;
    font-size: 14px !important;
    color: #fff !important;
    background: rgba(0,0,0,0.35) !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}
body:has(#ce-loginbox) .form-control::placeholder,
body:has(#register-form) .form-control::placeholder {
    color: rgba(255,255,255,0.45) !important;
}
body:has(#ce-loginbox) .form-control:focus,
body:has(#register-form) .form-control:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15) !important;
    outline: none !important;
    background: rgba(0,0,0,0.45) !important;
}

/* Input group icons (email/password) */
body:has(#ce-loginbox) .input-group,
body:has(#register-form) .input-group {
    border-radius: 12px !important;
    overflow: hidden !important;
}
body:has(#ce-loginbox) .input-group-text,
body:has(#register-form) .input-group-text {
    height: 52px !important;
    background: transparent !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 0 !important;
    color: #64748b !important;
    font-size: 16px !important;
    width: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body:has(#ce-loginbox) .input-group .form-control,
body:has(#register-form) .input-group .form-control {
    border-radius: 0 !important;
    padding-left: 16px !important;
}

/* --- Remember me checkbox --- */
body:has(#ce-loginbox) .checkbox,
body:has(#register-form) .checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #94a3b8 !important;
    margin: 0 !important;
    cursor: pointer !important;
}
body:has(#ce-loginbox) .checkbox input[type="checkbox"],
body:has(#register-form) .checkbox input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid rgba(255,255,255,0.25) !important;
    border-radius: 5px !important;
    background: rgba(0,0,0,0.4) !important;
    cursor: pointer !important;
}
body:has(#ce-loginbox) .checkbox input[type="checkbox"]:checked,
body:has(#register-form) .checkbox input[type="checkbox"]:checked {
    background: #06b6d4 !important;
    border-color: #06b6d4 !important;
}
body:has(#ce-loginbox) .checkbox input[type="checkbox"]:checked::after,
body:has(#register-form) .checkbox input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 5px !important;
    top: 1.5px !important;
    width: 5px !important;
    height: 9px !important;
    border: solid #fff !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

/* --- Forgot password / links --- */
body:has(#ce-loginbox) a,
body:has(#register-form) a {
    color: #22d3ee !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
body:has(#ce-loginbox) a:hover,
body:has(#register-form) a:hover {
    color: #67e8f9 !important;
    text-decoration: underline !important;
}

/* --- Submit button (centered, fixed width) --- */
body:has(#ce-loginbox) .col-12.text-right,
body:has(#register-form) .col-12.text-right {
    display: flex !important;
    justify-content: center !important;
}
body:has(#ce-loginbox) .app-btns.primary,
body:has(#register-form) .app-btns.primary {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 48px !important;
    line-height: 48px !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(90deg, #06b6d4 0%, #14b8a6 100%) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 20px rgba(6,182,212,0.35) !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 24px auto 0 !important;
}
body:has(#ce-loginbox) .app-btns.primary:hover,
body:has(#register-form) .app-btns.primary:hover {
    background: linear-gradient(90deg, #22d3ee 0%, #5eead4 100%) !important;
    box-shadow: 0 0 30px -5px rgba(6,182,212,0.50) !important;
    transform: translateY(-1px) !important;
}

/* --- Footer badges (SSL + Cloud) --- */
body:has(#ce-loginbox) .footer,
body:has(#register-form) .footer {
    display: none !important;
}

/* --- Register link (centered + spaced below button) --- */
body:has(#ce-loginbox) #ce-loginbox > .row > .col-12.text-right:last-child,
body:has(#register-form) #register-form > .row > .col-12.text-right:last-child {
    margin-top: 24px !important;
    text-align: center !important;
}
body:has(#ce-loginbox) #ce-loginbox > .row > .col-12.text-right:last-child a,
body:has(#register-form) #register-form > .row > .col-12.text-right:last-child a {
    font-size: 14px !important;
    color: #67e8f9 !important;
    text-decoration: none !important;
}

/* --- Remember me + Forgot password row --- */
body:has(#ce-loginbox) .ce-fm-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin: 16px 0 !important;
}

/* --- Register: section headers with cyan marker --- */
body:has(#register-form) .register-section {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(6,182,212,0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #22d3ee !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
body:has(#register-form) .register-section i {
    color: #22d3ee !important;
    font-size: 14px !important;
}

/* --- Register: auth switch links under title --- */
body:has(#register-form) .auth-switch {
    margin-top: 12px !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    display: block !important;
}
body:has(#register-form) .auth-switch a {
    color: #22d3ee !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}
body:has(#register-form) .auth-switch a:hover {
    color: #67e8f9 !important;
}

/* --- Register: dark dropdowns (fix white select boxes) --- */
body:has(#register-form) select,
body:has(#register-form) option {
    background: rgba(0,0,0,0.35) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
}
body:has(#register-form) select {
    width: 100% !important;
    height: 36px !important;
    border-radius: 12px !important;
    padding: 0 14px 0 42px !important;
    font-size: 13px !important;
    appearance: none !important;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

/* --- Register: two-column fields on desktop --- */
@media (min-width: 577px) {
    body:has(#register-form) #register-form .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 0 8px !important;
        margin-bottom: 14px !important;
        box-sizing: border-box !important;
    }
}

/* --- Register: single column on mobile to prevent overflow --- */
@media (max-width: 576px) {
    body:has(#register-form) #register-form .col-sm-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 8px !important;
        margin-bottom: 10px !important;
    }
}

/* --- Register: form-elem wrapper — dark pill container, label flows above input --- */
body:has(#register-form) .form-elem {
    position: relative !important;
    overflow: visible !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    background: rgba(0,0,0,0.30) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    padding-top: 28px !important; /* room for label above input */
    transition: all 0.3s ease !important;
}

/* --- Register: label sits above input inside the dark pill, top-left corner --- */
body:has(#register-form) .form-elem label {
    position: absolute !important;
    top: 9px !important;
    left: 14px !important;
    z-index: 2 !important;
    display: block !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    pointer-events: none !important;
}

/* --- Register: form-elem pill on focus --- */
body:has(#register-form) .form-elem:focus-within {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 3px rgba(6,182,212,0.15) !important;
    background: rgba(0,0,0,0.45) !important;
}

/* --- Register: form-control fills pill, no own radius, compact height --- */
body:has(#register-form) .form-elem .form-control {
    width: 100% !important;
    height: 36px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 2px 14px 2px 42px !important;
    font-size: 13px !important;
    color: #fff !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* --- Register: Remove default focus styles from input since wrapper handles it --- */
body:has(#register-form) .form-elem .form-control:focus {
    outline: none !important;
    background: transparent !important;
}

/* --- Register: Specific Icons for common fields (via background-image) --- */
/* Default Icon (User/Star) - Organization & generic */
body:has(#register-form) .form-elem .form-control {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%2364748b%22%3E%3Cpath%20d%3D%22M12%2012c2.21%200%204-1.79%204-4s-1.79-4-4-4-4%201.79-4%204%201.79%204%204%204zm0%202c-2.67%200-8%201.34-8%204v2h16v-2c0-2.66-5.33-4-8-4z%22/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: left 16px center !important;
    background-size: 20px auto !important;
}

/* Remove icon from Organization & Phone per request */
body:has(#register-form) .form-elem [name*="Organization"],
body:has(#register-form) .form-elem #CT_10,
body:has(#register-form) .form-elem [name*="Phone"],
body:has(#register-form) .form-elem #CT_8 {
    background-image: none !important;
    padding-left: 16px !important;
}

/* Email Icon */

/* Address/Location Icon — text inputs only (NOT select2 dropdowns) */
body:has(#register-form) .form-elem [name*="Address"],
body:has(#register-form) .form-elem #CT_3,
body:has(#register-form) .form-elem #CT_7 {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%2364748b%22%3E%3Cpath%20d%3D%22M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7zm0%209.5c-1.38%200-2.5-1.12-2.5-2.5s1.12-2.5%202.5-2.5%202.5%201.12%202.5%202.5-1.12%202.5-2.5%202.5z%22/%3E%3C/svg%3E') !important;
}

/* --- Fix: select2 dropdowns must NOT get any background-image icons --- */
body:has(#register-form) .form-elem select,
body:has(#register-form) .form-elem .select2-selection,
body:has(#register-form) .form-elem .select2-results,
body:has(#register-form) .form-elem .select2-results__options,
body:has(#register-form) .form-elem .select2-container {
    background-image: none !important;
    background-repeat: no-repeat !important;
}

/* Password Icon */
body:has(#register-form) .form-elem [type="password"] {
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%2364748b%22%3E%3Cpath%20d%3D%22M18%208h-1V6c0-2.76-2.24-5-5-5S7%203.24%207%206v2H6c-1.1%200-2%20.9-2%202v10c0%201.1.9%202%202%202h12c1.1%200%202-.9%202-2V10c0-1.1-.9-2-2-2zm-6%209c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202zM9%208V6c0-1.66%201.34-3%203-3s3%201.34%203%203v2H9z%22/%3E%3C/svg%3E') !important;
}

/* Icon Highlight on Focus */
body:has(#register-form) .form-elem:focus-within .form-control {
    background-position: left 16px center !important; /* Ensure it stays fixed */
}

/* Since background-image is used for icons, we must NOT override it for focused inputs unless we provide a cyan version of the icon.
   To keep it simple and clean, we'll use a CSS filter to turn the icon cyan on focus if supported, or just keep it slate.
   Actually, let's just let the border be the main indicator. */

/* --- Register: selects (Country, State, etc) --- */
body:has(#register-form) select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22%2364748b%22%3E%3Cpath%20d%3D%22M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7zm0%209.5c-1.38%200-2.5-1.12-2.5-2.5s1.12-2.5%202.5-2.5%202.5%201.12%202.5%202.5-1.12%202.5-2.5%202.5z%22/%3E%3C/svg%3E'),
                      url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E') !important;
    background-repeat: no-repeat !important;
    background-position: left 16px center, right 16px center !important;
    background-size: 20px auto, 12px auto !important;
}

/* --- Register: options in dropdown --- */
body:has(#register-form) option {
    background: #0f172a !important;
    color: #fff !important;
}


/* --- Register: labels --- */
body:has(#register-form) label {
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 6px !important;
    display: block !important;
}

/* --- Register: section headers sit above their fields --- */
body:has(#register-form) .register-section + .col-sm-6 .form-elem {
    margin-top: 0 !important;
}

/* --- Mobile adjustments --- */
@media (max-width: 576px) {
    body:has(#ce-loginbox) .data-table-wrapper,
    body:has(#register-form) .data-table-wrapper {
        max-width: 100% !important;
        border-radius: 0 !important;
        margin: 0 auto !important;
    }
    body:has(#ce-loginbox) .data-table-wrapper .head,
    body:has(#register-form) .data-table-wrapper .head {
        padding: 24px 24px 4px !important;
    }
    body:has(#ce-loginbox) .data-table-wrapper .cs-padding,
    body:has(#register-form) .data-table-wrapper .cs-padding {
        padding: 12px 24px 24px !important;
    }
}

/* --- Register: full-width centered submit button --- */
body:has(#register-form) #register-form .col-sm-6.text-center {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}
body:has(#register-form) #register-form .app-btns.primary {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

/* --- Register: submit button wrapper — centered, no :has() dependency --- */
.register-submit-wrap {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}
.register-submit-wrap .app-btns.primary {
    display: block !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
}

/* --- Register: submit button must NOT sit inside a .form-elem pill box --- */
body:has(#register-form) #register-form .form-elem:has(.app-btns.primary) {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}
body:has(#register-form) #register-form .form-elem:has(.app-btns.primary) .app-btns.primary {
    margin-top: 0 !important;
}

/* --- Register: security footer badges --- */
body:has(#register-form) .security-footer {
    margin-top: 28px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    align-items: center !important;
    color: #64748b !important;
    font-size: 12px !important;
}
body:has(#register-form) .security-footer .sec-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #22d3ee !important;
}
body:has(#register-form) .security-footer .sec-item i {
    font-size: 14px !important;
}
body:has(#register-form) .security-footer .sec-dot {
    color: #334155 !important;
}

/* --- Neutralize old inline .auth-card wrapper if it renders */
body.auth-layout .auth-card {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
