@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Modern Auth & Signup Design System — Udyamika
   Ported from a sibling project's registration theme (structure and
   interaction patterns), retokenized to this site's brand:
     - Gold (#C99520 / #94690C) is the primary/CTA accent, matching
       css/style.css's --gold-gradient (AGENTS.md §3).
     - Emerald (#10b981 / #059669) is kept ONLY for "verified/success"
       semantic states (sponsor verified, form success), matching how
       emerald is already used elsewhere in this codebase (sys_alerts.css
       --g1a-success, swal2-modern.css success icon).
   Scoped to usr/CreateUserAccount.php only — does not touch login-theme.css
   (shared by ~10 other usr/ pages), same isolation approach as before.
   ========================================================================== */

:root {
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Outfit', sans-serif;
    --primary-grad: linear-gradient(135deg, #F5E3B2 0%, #C99520 60%, #94690C 100%);
    --primary-hover: linear-gradient(135deg, #E7B94A 0%, #AA7C11 60%, #6b4a0c 100%);
    --accent-gold: #C99520;
    --accent-gold-dark: #94690C;
    --accent-emerald: #10b981;
    --accent-emerald-dark: #059669;
    --card-bg: rgba(255, 255, 255, 0.94);
    --card-border: rgba(255, 255, 255, 0.85);
    --input-border: #e2e8f0;
    --input-focus: #C99520;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --radius-lg: 26px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

/* ==========================================================================
   Card shell — this page renders inside the logged-in dashboard chrome
   (not a standalone full-viewport auth screen), so only the card itself
   is themed here; no fixed-position ambient background/ombre wrapper.
   ========================================================================== */
.signup-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.signup-card {
    background: var(--card-bg);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 18px 18px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(226, 232, 240, 0.7);
    transition: all 0.3s ease;
}

@media (max-width: 540px) {
    .signup-card {
        padding: 22px 16px;
        border-radius: 22px;
    }
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
    margin-bottom: 12px;
    text-align: left;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #475569;
    margin-bottom: 7px;
}

.form-label i {
    color: var(--accent-gold);
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 40px;
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-family: var(--font-main);
    font-size: 0.84rem;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(201, 149, 32, 0.15);
}

/* File inputs ignore most of .form-input's box styling by default (the
   native "Choose File" widget doesn't respect padding/line-height), so give
   it its own treatment: a styled pseudo-button + normal text for the
   filename, instead of the raw browser-default control. */
input[type="file"].form-input {
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
input[type="file"].form-input::file-selector-button {
    border: none;
    background: var(--primary-grad);
    color: #070a12;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 8px;
    margin-right: 12px;
    cursor: pointer;
    transition: filter 0.2s ease;
}
input[type="file"].form-input::file-selector-button:hover {
    filter: brightness(1.05);
}

.form-select-custom {
    width: 100%;
    height: 40px !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394690C' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    border: 1.5px solid var(--input-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 42px 0 16px !important;
    font-family: var(--font-main);
    font-size: 0.84rem;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-select-custom:hover {
    border-color: #cbd5e1 !important;
    background-color: #fcfdfd !important;
}

.form-select-custom:focus {
    border-color: var(--input-focus) !important;
    box-shadow: 0 0 0 4px rgba(201, 149, 32, 0.15) !important;
    background-color: #ffffff !important;
}

.input-wrapper .form-input.has-append {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-append-btn {
    height: 40px;
    padding: 0 20px;
    background: #f8f6ef;
    border: 1.5px solid var(--input-border);
    border-left: none;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
    color: var(--accent-gold-dark);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.input-append-btn:hover {
    background: #fdf6e3;
    color: var(--accent-gold-dark);
}

/* ==========================================================================
   Grids
   ========================================================================== */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   Modern Alerts (sponsor/parent verification responses)
   ========================================================================== */
#SponsorResponse,
#ParentResponse,
#PinResponse {
    margin-top: 8px;
    width: 100%;
}

.modern-alert {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    margin: 8px 0 0 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    animation: alertSlideDown 0.25s ease-out !important;
    box-sizing: border-box !important;
    text-align: left !important;
    width: 100% !important;
}

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

.modern-alert-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
    font-size: 1.15rem !important;
}

.modern-alert-content {
    flex: 1 !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.modern-alert-success {
    background: #ecfdf5 !important;
    border: 1.5px solid #a7f3d0 !important;
}
.modern-alert-success .modern-alert-icon { background: #d1fae5 !important; color: var(--accent-emerald-dark) !important; }
.modern-alert-success .modern-alert-content { color: #065f46 !important; }

.modern-alert-danger {
    background: #fff1f2 !important;
    border: 1.5px solid #fecdd3 !important;
}
.modern-alert-danger .modern-alert-icon { background: #ffe4e6 !important; color: #e11d48 !important; }
.modern-alert-danger .modern-alert-content { color: #9f1239 !important; }

.modern-alert .btn-close { display: none !important; }

/* ==========================================================================
   Submit Action Button
   ========================================================================== */
.submit-btn {
    width: 100%;
    height: 44px;
    background: var(--primary-grad);
    color: #070a12 !important;
    border: none;
    border-radius: 9999px;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 12px 28px -6px rgba(201, 149, 32, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(201, 149, 32, 0.55);
    color: #070a12 !important;
}

.submit-btn:active { transform: translateY(0); }

.cancel-btn {
    height: 44px;
    padding: 0 24px;
    border-radius: 9999px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--text-muted);
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.cancel-btn:hover { background: #f1f5f9; color: #0f172a; }

/* ==========================================================================
   Password toggle
   ========================================================================== */
.input-wrapper.has-toggle .form-input { padding-right: 48px; }

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.password-toggle-btn:hover { color: var(--accent-gold-dark); background: #f1f5f9; }

/* ==========================================================================
   Dropdown menu (E-PIN stock, non-free-registration mode only)
   ========================================================================== */
#dmenu.dropdown-menu {
    border-radius: 18px !important;
    border: 1.5px solid var(--input-border) !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
    padding: 10px !important;
}
#dmenu .dropdown-item {
    padding: 0 !important;
    margin-bottom: 6px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
#dmenu .dropdown-item:last-child { margin-bottom: 0 !important; }
#dmenu .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    background: var(--primary-grad) !important;
    color: #070a12 !important;
    border: none !important;
}

/* ==========================================================================
   Registration success — credential box (used inside the Bootstrap
   regSuccessModal, which is already themed by swal2-modern.css's
   .modal-content rules)
   ========================================================================== */
.credential-box {
    background: #ffffff;
    border: 1.5px solid var(--input-border);
    border-radius: 20px;
    padding: 22px 24px;
    margin: 18px 0 22px 0;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}
.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.credential-row:last-child { border-bottom: none; padding-bottom: 0; }
.credential-row:first-child { padding-top: 0; }
.credential-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; }
.credential-val { display: flex; align-items: center; gap: 8px; }
.copy-pill {
    border: none;
    background: #fdf6e3;
    color: var(--accent-gold-dark);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.copy-pill:hover { background: #fbecc4; }

/* ==========================================================================
   Reusable across other "submit a payment / request" forms (not signup-only
   despite the filename) — amount quick-pick chips + an always-visible
   payment reference panel (QR + bank list), replacing hidden accordions
   that hide info the member needs to actually complete the form.
   ========================================================================== */
.amt-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
}
.amt-chip {
    border: 1.5px solid var(--input-border);
    background: #fff;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.74rem;
    padding: 5px 12px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.amt-chip:hover { border-color: var(--accent-gold); background: #fdf6e3; }
.amt-chip.is-active {
    background: var(--primary-grad);
    border-color: transparent;
    color: #070a12;
    box-shadow: 0 4px 12px rgba(201, 149, 32, 0.32);
}

.pay-ref-panel {
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-md);
    background: #fafafa;
    overflow: hidden;
}
.pay-ref-panel__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fdf6e3;
    border-bottom: 1px solid var(--input-border);
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--accent-gold-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pay-ref-panel__body {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 16px;
    align-items: start;
}
@media (max-width: 560px) {
    .pay-ref-panel__body { grid-template-columns: 1fr; }
}
.pay-ref-panel__qr {
    width: 100%;
    max-width: 180px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: #fff;
    padding: 6px;
    margin: 0 auto;
    display: block;
}
.pay-ref-panel__banklist { font-size: 0.82rem; }

.trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: #0c4a6e;
    margin: 12px 0;
}
.trust-note i { color: #0284c7; margin-top: 2px; }

/* ===== SECTION HEADING (gradient accent bar + title) ===== */
.g1h-head { display:flex; align-items:center; gap:.6rem; margin:1.1rem 0 .7rem; }
.g1h-head__bar { width:5px; height:22px; border-radius:4px; flex:0 0 auto; background:linear-gradient(180deg, var(--g1h-bar-a, #10b981), var(--g1h-bar-b, #C99520)); }
.g1h-head__title { font-family:'Outfit','Plus Jakarta Sans',sans-serif; font-size:1.12rem; font-weight:800; letter-spacing:-.01em; color:var(--ds-ink, #0f172a); margin:0; line-height:1.15; }
.g1h-head__sub { font-size:.76rem; font-weight:600; color:var(--ds-ink-3, #64748b); margin:0; }
.g1h-head__link { margin-left:auto; font-size:.74rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--g1h-bar-a, #10b981); text-decoration:none; white-space:nowrap; }
.g1h-head__link:hover { color:var(--g1h-bar-b, #C99520); }
[data-theme="dark"] .g1h-head__title { color:#f1f5f9; }

.signup-body { --g1h-bar-a:#2f6fd8; --g1h-bar-b:#C99520; --ds-ink:#0a192f; }

/* ==========================================================================
   Emerald theme for the registration pages (.reg-green): same greenish look as the portal
   ========================================================================== */
.reg-green {
    --primary-grad: linear-gradient(135deg, #34d399 0%, #10b981 55%, #047857 100%);
    --primary-hover: linear-gradient(135deg, #10b981 0%, #059669 55%, #065f46 100%);
    --accent-gold: #10b981;
    --accent-gold-dark: #047857;
    --input-focus: #10b981;
    --primary: #10b981;
    --primary-light: rgba(16, 185, 129, .1);
}
body.reg-green .mesh-bg, body.reg-green {
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 10%, rgba(16, 185, 129, .16) 0%, transparent 60%),
        radial-gradient(ellipse 70% 70% at 90% 10%, rgba(52, 211, 153, .14) 0%, transparent 65%),
        radial-gradient(ellipse 80% 70% at 90% 90%, rgba(16, 185, 129, .10) 0%, transparent 60%),
        linear-gradient(135deg, #ecfdf5 0%, #f8fafc 35%, #f8fafc 70%, #f0fdfa 100%);
    background-attachment: fixed;
}
.reg-green .signup-card { border-color: rgba(16, 185, 129, .18); box-shadow: 0 24px 50px -22px rgba(4, 120, 87, .28), 0 10px 25px -8px rgba(15, 23, 42, .06); }
.reg-green [style*="201,149,32"], .reg-green [style*="201, 149, 32"] { border-color: rgba(16, 185, 129, .2) !important; }
.reg-green .signup-card img[alt$="Logo"] { border-color: rgba(16, 185, 129, .25) !important; background: #f0fdf9 !important; box-shadow: none !important; }
.reg-green .form-label i, .reg-green .brand-title-text i { color: #10b981 !important; }
.reg-green .form-input:focus, .reg-green .form-select-custom:focus { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.reg-green .input-append-btn { color: #047857; }
.reg-green .input-append-btn:hover { background: #ecfdf5; color: #065f46; }
.reg-green .submit-btn { color: #fff !important; box-shadow: 0 14px 28px -10px rgba(5, 150, 105, .6); }
.reg-green .submit-btn:hover { color: #fff !important; box-shadow: 0 18px 32px -10px rgba(5, 150, 105, .7); }
.reg-green .amt-chip:hover { border-color: #10b981; background: #ecfdf5; }
.reg-green .back-link-fixed { color: #047857; }
.reg-green .signup-card a[href*="Login"]:not(.btn) { color: #047857 !important; }
.reg-green .signup-card .btn-outline-secondary { border-color: rgba(16, 185, 129, .35) !important; color: #047857 !important; }
.reg-green .signup-card .btn-outline-secondary:hover { background: #ecfdf5 !important; }
