/* ============================================================
   customRegister.css — XRP World | Shared Register Theme CSS
   Used by: authUserRegister.php, registerSuccess.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Exo+2:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
    --sidebar-bg:    #0d4a47;
    --sidebar-dark:  #093836;
    --accent-green:  #22c55e;
    --accent-teal:   #0d9488;
    --accent-indigo: #3b3fa8;
    --card-bg:       #ffffff;
    --page-bg:       #071a18;
    --text-dark:     #1e293b;
    --text-muted:    #64748b;
    --border:        #e2e8f0;
    --input-bg:      #f8fafc;
    --input-border:  #cbd5e1;
    --shadow-lg:     0 8px 40px rgba(13,74,71,0.35);
}

/* ── BODY ── */
body {
    font-family: 'Exo 2', sans-serif !important;
    background: var(--page-bg) !important;
    min-height: 100vh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 32px 16px !important;
    position: relative;
    overflow-x: hidden;
}

/* hide old elements */
.starsec, .starthird, .starfourth, .starfifth,
.bg-img-cover, .col-xl-7 { display: none !important; }

/* ── BACKGROUND LAYERS ── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(13,148,136,0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(34,197,94,0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(13,74,71,0.35) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0-4l24-14V20L28 4 4 20v28l24 14z' fill='none' stroke='%230d9488' stroke-width='0.4' stroke-opacity='0.18'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    z-index: 0;
    pointer-events: none;
    animation: gridDrift 30s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 56px 100px; }
}

/* ── GLOWING ORBS ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: orbPulse ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(13,148,136,0.22), transparent 70%);
    top: -100px; left: -100px;
    animation-duration: 7s;
}

.orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(34,197,94,0.15), transparent 70%);
    bottom: -80px; right: -80px;
    animation-duration: 9s;
}

.orb-3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(59,63,168,0.18), transparent 70%);
    top: 40%; right: 10%;
    animation-duration: 11s;
}

@keyframes orbPulse {
    from { transform: scale(1); opacity: 0.7; }
    to   { transform: scale(1.2); opacity: 1; }
}

/* ── CARD ── */
.register-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.4s ease both;
}
.login-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 470px;
    position: relative;
    z-index: 10;
    animation: fadeUp 0.4s ease both;
}

/* success card is narrower */
.register-card.success-card {
    max-width: 480px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── CARD HEADER ── */
.reg-header {
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--sidebar-dark) 100%);
    padding: 28px 36px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.reg-header-logo img { width: 58px; }

.reg-header-text h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px; font-weight: 700; letter-spacing: 2px;
    color: #ffffff; margin: 0;
}

.reg-header-text p {
    font-size: 13px; color: rgba(255,255,255,0.5);
    margin: 3px 0 0;
}

.reg-header-links {
    margin-left: auto;
    display: flex; gap: 10px;
}

.reg-header-links a {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    transition: all 0.2s;
}

.reg-header-links a:hover {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
}

/* ── CARD BODY ── */
.reg-body { padding: 32px 36px 36px; }

/* ── SECTION DIVIDERS ── */
.section-label {
    display: flex; align-items: center; gap: 10px;
    margin: 22px 0 16px;
}

.section-label span {
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--text-muted);
    white-space: nowrap;
}

.section-line { flex: 1; height: 1px; background: var(--border); }

/* ── FORM GRID ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group-custom { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.form-group-custom.full { grid-column: 1 / -1; }

.form-label-custom {
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-muted);
}

/* ── INPUTS ── */
.input-wrap { position: relative; }

.input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--text-muted); pointer-events: none;
    line-height: 1;
}

.reg-input, .reg-select {
    width: 100% !important; height: 46px !important;
    background: var(--input-bg) !important;
    border: 1.5px solid var(--input-border) !important;
    border-radius: 10px !important;
    padding: 0 14px 0 40px !important;
    font-family: 'Exo 2', sans-serif !important;
    font-size: 14px !important; color: var(--text-dark) !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    appearance: none; -webkit-appearance: none;
    box-shadow: none !important;
}

.reg-input:focus, .reg-select:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
    background: #ffffff !important;
}

.reg-input::placeholder { color: #adb5bd !important; }
.reg-input:disabled, .reg-select:disabled {
    opacity: 0.75 !important;
    cursor: not-allowed !important;
    background: #f1f5f9 !important;
}

.select-wrap::after {
    content: '▾';
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none; font-size: 12px;
}

/* ── LEG TOGGLE ── */
.leg-toggle { display: flex; gap: 10px; }

.leg-btn {
    flex: 1; height: 46px; border-radius: 10px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg); color: var(--text-muted);
    font-family: 'Exo 2', sans-serif; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

.leg-btn:hover { border-color: var(--accent-teal); color: var(--accent-teal); }

.leg-btn.selected {
    background: var(--sidebar-bg); border-color: var(--sidebar-bg);
    color: #ffffff; box-shadow: 0 4px 12px rgba(13,74,71,0.25);
}

/* ── TERMS ── */
.terms-row {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 0 4px; cursor: pointer;
}

.custom-check {
    width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}

.custom-check.checked {
    background: var(--accent-teal); border-color: var(--accent-teal);
}

.custom-check.checked::after {
    content: '✓'; color: white; font-size: 12px; font-weight: 700;
}

.terms-text { font-size: 13px; color: var(--text-muted); }
.terms-text a { color: var(--accent-teal); font-weight: 600; text-decoration: none; }

/* ── SUBMIT BUTTON ── */
.submit-btn {
    width: 100%; height: 52px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-teal) 100%);
    border: none; border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px; font-weight: 700; letter-spacing: 2px;
    color: #ffffff; cursor: pointer; margin-top: 20px;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(34,197,94,0.35);
    display: block;
    text-decoration: none;
    text-align: center;
    line-height: 52px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34,197,94,0.45);
    color: #ffffff;
    text-decoration: none;
}

.submit-btn:active { transform: translateY(0); }


/* ── SUCCESS BADGE ── */
.success-badge {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(34,197,94,0.35);
    animation: popIn 0.5s cubic-bezier(0.175,0.885,0.32,1.275) both 0.2s;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 700; letter-spacing: 1px;
    color: var(--text-dark); text-align: center; margin-bottom: 4px;
}

.success-sub {
    font-size: 13px; color: var(--text-muted);
    text-align: center; margin-bottom: 24px;
}

/* success info rows */
.info-row {
    display: flex; align-items: center;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0 16px;
    height: 52px;
    margin-bottom: 12px;
    gap: 12px;
}

.info-row-icon { font-size: 16px; flex-shrink: 0; }

.info-row-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-muted);
    min-width: 110px;
}

.info-row-value {
    font-size: 14px; font-weight: 600;
    color: var(--text-dark);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* site link */
.site-link {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: var(--text-muted);
}

.site-link a { color: var(--accent-teal); font-weight: 600; text-decoration: none; }
.site-link a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .form-grid { grid-template-columns: 1fr; }
    .reg-body { padding: 24px 20px 28px; }
    .reg-header { padding: 20px 20px 18px; flex-wrap: wrap; }
    .reg-header-links { margin-left: 0; }
    .info-row-label { min-width: 80px; }
}

/* ── CRYPTO PARTICLE SCRIPT (inline, shared via JS include) ── */