/* ============================================================
   Xylo Markets — Shared Auth Stylesheet
   Used by: login, register/step1, register/step2, forgot-password,
            reset-password, verify-email
   ============================================================ */

html, body { overflow-x:hidden; }
body.auth-bg { background:#010409 !important; color:#f8fafc; margin:0; }
body.auth-bg * { box-sizing:border-box; }

/* ===== Layout shell ===== */
.xylo-auth {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px 20px;
    position:relative;
    overflow:hidden;
    font-family:'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background:
        radial-gradient(ellipse at top right, rgba(34,197,94,0.08), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(234,179,8,0.06), transparent 50%),
        #010409;
}
.xylo-auth::before {
    content:''; position:absolute; inset:0;
    background-image:linear-gradient(rgba(34,197,94,.045) 1px,transparent 1px),
                     linear-gradient(90deg,rgba(34,197,94,.045) 1px,transparent 1px);
    background-size:60px 60px;
    pointer-events:none;
    mask-image:radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image:radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.xylo-auth::after {
    content:''; position:absolute;
    top:-30%; right:-10%; width:700px; height:700px; max-width:90vw; max-height:90vw;
    background:radial-gradient(circle,rgba(34,197,94,.12),transparent 70%);
    border-radius:50%; filter:blur(140px); pointer-events:none;
}
.xylo-orb {
    position:absolute; bottom:-25%; left:-8%;
    width:600px; height:600px; max-width:80vw; max-height:80vw;
    background:radial-gradient(circle,rgba(234,179,8,.10),transparent 70%);
    border-radius:50%; filter:blur(160px); pointer-events:none;
}

/* Two-column wrap (brand panel + form card) */
.xylo-wrap {
    position:relative; z-index:2; width:100%;
    max-width:1100px;
    display:grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    gap:60px;
    align-items:center;
}
@media (max-width:1024px){
    .xylo-wrap { grid-template-columns:1fr; max-width:460px; gap:0; }
    .xylo-brand-side { display:none !important; }
}

/* ===== Form Card ===== */
.xylo-card {
    background:linear-gradient(180deg, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.85) 100%);
    border:1px solid rgba(255,255,255,0.10);
    border-radius:24px;
    padding:36px 32px;
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    box-shadow:
        0 30px 80px -20px rgba(0,0,0,0.55),
        0 0 0 1px rgba(34,197,94,0.04) inset,
        0 1px 0 rgba(255,255,255,0.04) inset;
    animation:slideUp .6s cubic-bezier(.22,1,.36,1);
    width:100%;
    max-width:460px;
    margin:0 auto;
    position:relative;
}
.xylo-card::before {
    content:'';
    position:absolute; inset:0;
    border-radius:inherit;
    padding:1px;
    background:linear-gradient(135deg, rgba(34,197,94,0.4) 0%, transparent 30%, transparent 70%, rgba(234,179,8,0.25) 100%);
    -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    pointer-events:none;
    opacity:0.6;
}
@media (min-width:520px){ .xylo-card { padding:42px 38px; } }
@media (min-width:1025px){ .xylo-card { padding:44px 40px; margin:0; } }
@media (max-width:380px){ .xylo-card { padding:30px 22px; border-radius:20px; } }
@keyframes slideUp { from{ opacity:0; transform:translateY(20px); } to{ opacity:1; transform:translateY(0); } }

/* ===== Mini logo ===== */
.xylo-logo-mini { display:inline-flex; align-items:center; gap:10px; margin-bottom:24px; }
.xylo-logo-mini-icon { width:36px; height:36px; border-radius:9px; display:flex; align-items:center; justify-content:center; color:#010409; font-weight:900; font-size:17px; flex-shrink:0; background:linear-gradient(135deg,#22c55e,#eab308); overflow:hidden; }
.xylo-logo-mini-icon img { width:100%; height:100%; object-fit:contain; display:block; }
.xylo-logo-mini-text { font-size:13px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:#94a3b8; }

/* ===== Headings ===== */
.xylo-title { font-size:28px; font-weight:800; color:#f8fafc; margin:0 0 6px; letter-spacing:-0.5px; line-height:1.2; }
@media (min-width:520px){ .xylo-title { font-size:32px; } }
.xylo-title .grad, .grad { background:linear-gradient(135deg,#22c55e 0%,#eab308 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.xylo-sub { font-size:14px; color:#94a3b8; margin:0 0 24px; line-height:1.55; }
@media (min-width:520px){ .xylo-sub { font-size:15px; } }

/* ===== Form fields ===== */
.xylo-field { margin-bottom:18px; position:relative; }
.xylo-label { display:block; font-size:11px; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:7px; }
.xylo-input-wrap { position:relative; }
.xylo-input {
    width:100%; padding:14px 16px 14px 46px;
    background:rgba(2,6,15,0.5);
    border:1px solid rgba(255,255,255,0.10);
    border-radius:11px;
    color:#f8fafc !important;
    font-size:15px; font-weight:500;
    transition:all .25s;
    font-family:inherit;
    -webkit-appearance:none; appearance:none;
}
.xylo-input:hover { border-color:rgba(255,255,255,0.15); }
.xylo-input:focus { outline:none; border-color:#22c55e; background:rgba(34,197,94,0.05); box-shadow:0 0 0 3px rgba(34,197,94,0.1); }
.xylo-input::placeholder { color:rgba(148,163,184,0.5); }
.xylo-input-icon { position:absolute; left:16px; top:50%; transform:translateY(-50%); width:18px; height:18px; color:#64748b; transition:color .3s; pointer-events:none; }
.xylo-input-wrap:focus-within .xylo-input-icon { color:#22c55e; }

/* Eye toggle */
.xylo-eye { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; cursor:pointer; padding:8px; border-radius:8px; color:#64748b; transition:all .3s; display:flex; align-items:center; justify-content:center; }
.xylo-eye:hover { color:#22c55e; background:rgba(34,197,94,0.08); }
.xylo-eye .eye-closed, .xylo-eye.shown .eye-open { display:none; }
.xylo-eye.shown .eye-closed { display:block; }

/* Grid for first/last name */
.xylo-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:480px){ .xylo-grid-2 { grid-template-columns:1fr; gap:0; } }

/* ===== Buttons ===== */
.xylo-btn {
    width:100%; padding:15px;
    background:linear-gradient(135deg,#22c55e 0%,#16a34a 100%);
    color:#010409; border:none; border-radius:12px;
    font-size:15px; font-weight:700; cursor:pointer;
    transition:all .3s;
    box-shadow:0 4px 20px rgba(34,197,94,0.3);
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    margin-top:6px;
    font-family:inherit;
}
.xylo-btn:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(34,197,94,0.5); }
.xylo-btn:disabled { opacity:.5; cursor:not-allowed; transform:none; }

.xylo-btn-ghost { width:100%; padding:14px; background:transparent; color:#cbd5e1; border:1px solid rgba(255,255,255,0.08); border-radius:12px; font-size:14px; font-weight:600; cursor:pointer; transition:all .25s; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; margin-top:10px; font-family:inherit; }
.xylo-btn-ghost:hover { background:rgba(255,255,255,0.03); color:#f8fafc; }

/* ===== Row (remember + forgot) ===== */
.xylo-row { display:flex; align-items:center; justify-content:space-between; margin:18px 0 24px; flex-wrap:wrap; gap:10px; }
.xylo-check { display:inline-flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.xylo-check input { display:none; }
.xylo-check-box { width:20px; height:20px; border-radius:6px; border:2px solid rgba(255,255,255,0.15); background:rgba(255,255,255,0.03); display:flex; align-items:center; justify-content:center; transition:all .3s; flex-shrink:0; }
.xylo-check input:checked + .xylo-check-box { background:#22c55e; border-color:#22c55e; transform:scale(1.05); }
.xylo-check-box svg { opacity:0; transform:scale(.5); transition:all .25s; color:#010409; }
.xylo-check input:checked + .xylo-check-box svg { opacity:1; transform:scale(1); }
.xylo-check-label { font-size:13px; color:#cbd5e1; font-weight:500; }
.xylo-forgot { font-size:13px; color:#22c55e; text-decoration:none; font-weight:600; transition:all .3s; }
.xylo-forgot:hover { color:#16a34a; text-decoration:underline; }

/* ===== Divider, foot, alerts ===== */
.xylo-divider { display:flex; align-items:center; gap:14px; margin:24px 0 18px; color:#475569; font-size:12px; font-weight:500; }
.xylo-divider::before, .xylo-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,0.08); }
.xylo-foot { text-align:center; color:#94a3b8; font-size:13px; margin-top:18px; }
.xylo-foot a { color:#22c55e; font-weight:600; text-decoration:none; }
.xylo-foot a:hover { text-decoration:underline; }

.xylo-alert { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.3); border-radius:12px; padding:12px 16px; margin-bottom:18px; color:#fecaca; font-size:13px; }
.xylo-alert p { margin:0 0 4px; }
.xylo-alert p:last-child { margin:0; }
.xylo-success { background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.3); border-radius:12px; padding:13px 16px; margin-bottom:18px; color:#86efac; font-size:13px; display:flex; align-items:flex-start; gap:10px; }
.xylo-success svg { flex-shrink:0; color:#22c55e; margin-top:1px; }
.xylo-info { background:rgba(34,197,94,0.08); border:1px solid rgba(34,197,94,0.25); border-radius:12px; padding:12px 16px; margin-bottom:18px; color:#86efac; font-size:13px; }

/* ===== BRAND SIDE (left panel) ===== */
.xylo-brand-side {
    text-align:left;
    padding:0 0 0 20px;
    max-width:560px;
    justify-self:end;
    width:100%;
}
@media (max-width:1280px){ .xylo-brand-side { padding:0; } }
.xylo-brand-badge {
    display:inline-flex; align-items:center; gap:8px;
    padding:7px 14px;
    background:rgba(34,197,94,0.1);
    border:1px solid rgba(34,197,94,0.2);
    border-radius:50px;
    font-size:11px; font-weight:700; color:#22c55e;
    text-transform:uppercase; letter-spacing:1.5px;
    margin-bottom:20px;
}
.xylo-brand-h1 {
    font-size:40px;
    font-weight:800;
    line-height:1.08;
    margin:0 0 18px;
    letter-spacing:-1.2px;
    color:#f8fafc;
}
@media (min-width:1280px){ .xylo-brand-h1 { font-size:48px; } }
@media (max-width:1180px){ .xylo-brand-h1 { font-size:36px; } }
.xylo-brand-h1 .grad { display:inline; }
.xylo-brand-p { font-size:15px; color:#94a3b8; line-height:1.6; margin:0 0 26px; max-width:480px; }
@media (min-width:1280px){ .xylo-brand-p { font-size:16px; } }

/* Stats row */
.xylo-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; max-width:480px; }
.xylo-stat {
    background:linear-gradient(180deg, rgba(15,23,42,0.7), rgba(15,23,42,0.5));
    border:1px solid rgba(255,255,255,0.08);
    border-radius:14px; padding:16px 14px;
    transition:all .25s;
}
.xylo-stat:hover { border-color:rgba(34,197,94,0.25); transform:translateY(-2px); }
.xylo-stat-v { font-size:24px; font-weight:800; background:linear-gradient(135deg,#22c55e,#eab308); -webkit-background-clip:text; -webkit-text-fill-color:transparent; line-height:1.1; }
.xylo-stat-l { font-size:10px; color:#94a3b8; text-transform:uppercase; letter-spacing:1px; margin-top:6px; font-weight:600; }

.xylo-trust { display:flex; align-items:center; gap:12px; margin-top:26px; padding-top:20px; border-top:1px solid rgba(255,255,255,0.06); flex-wrap:wrap; }
.xylo-trust-stars { display:flex; gap:2px; color:#eab308; }
.xylo-trust-text { font-size:12px; color:#94a3b8; }
.xylo-trust-text b { color:#f8fafc; }

/* Pulse dot animation */
.pulse-dot { width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 0 rgba(34,197,94,0.7); animation:pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 rgba(34,197,94,0.7);} 70%{ box-shadow:0 0 0 12px rgba(34,197,94,0);} 100%{ box-shadow:0 0 0 0 rgba(34,197,94,0);} }
.pulse-dot.gold { background:#eab308; box-shadow:0 0 0 0 rgba(234,179,8,0.7); animation:pulseGold 2s infinite; }
@keyframes pulseGold { 0%{ box-shadow:0 0 0 0 rgba(234,179,8,0.7);} 70%{ box-shadow:0 0 0 12px rgba(234,179,8,0);} 100%{ box-shadow:0 0 0 0 rgba(234,179,8,0);} }

/* ===== Step indicator (register flow) ===== */
.xylo-steps { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
.xylo-step { display:flex; align-items:center; gap:10px; min-width:0; }
.xylo-step-num { width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:#64748b; transition:all .3s; flex-shrink:0; }
.xylo-step.done .xylo-step-num { background:#22c55e; color:#010409; border-color:#22c55e; }
.xylo-step.active .xylo-step-num { background:linear-gradient(135deg,#22c55e,#16a34a); color:#010409; border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,0.15); }
.xylo-step-text { font-size:12px; font-weight:600; color:#64748b; white-space:nowrap; }
.xylo-step.done .xylo-step-text, .xylo-step.active .xylo-step-text { color:#f8fafc; }
.xylo-step-bar { flex:1; height:2px; background:rgba(255,255,255,0.06); border-radius:2px; min-width:20px; }

/* Country / select dropdown */
.xy-country, .xy-sel { position:relative; }
.xy-country .xylo-input, .xy-sel .xylo-input { cursor:pointer; user-select:none; padding-right:40px; }
.xy-country::after, .xy-sel::after { content:''; position:absolute; right:18px; top:50%; transform:translateY(-30%) rotate(45deg); width:7px; height:7px; border-right:2px solid #64748b; border-bottom:2px solid #64748b; pointer-events:none; transition:transform .3s; }
.xy-country.open::after, .xy-sel.open::after { transform:translateY(-10%) rotate(-135deg); }
.xy-country-list, .xy-sel-list { position:absolute; top:calc(100% + 6px); left:0; right:0; background:rgba(15,23,42,0.98); border:1px solid rgba(255,255,255,0.08); border-radius:12px; max-height:240px; overflow-y:auto; z-index:50; display:none; backdrop-filter:blur(20px); box-shadow:0 20px 60px rgba(0,0,0,0.6); }
.xy-country.open .xy-country-list, .xy-sel.open .xy-sel-list { display:block; }
.xy-country-opt, .xy-sel-opt { display:flex; align-items:center; gap:12px; padding:10px 14px; cursor:pointer; transition:background .2s; font-size:13px; color:#cbd5e1; }
.xy-country-opt:hover, .xy-country-opt.selected, .xy-country-opt.hovered,
.xy-sel-opt:hover, .xy-sel-opt.selected { background:rgba(34,197,94,0.08); color:#f8fafc; }
.xy-country-opt.hovered { outline:1px solid rgba(34,197,94,0.4); }
.xy-country-opt img { width:22px; height:16px; border-radius:3px; object-fit:cover; flex-shrink:0; }
.xy-country-list::-webkit-scrollbar, .xy-sel-list::-webkit-scrollbar { width:6px; }
.xy-country-list::-webkit-scrollbar-thumb, .xy-sel-list::-webkit-scrollbar-thumb { background:rgba(34,197,94,0.3); border-radius:3px; }

/* Phone group */
.xy-phone-group { display:flex; gap:8px; }
.xy-phone-code { flex:0 0 80px; padding:14px 8px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:11px; color:#22c55e !important; font-weight:700; font-size:13px; text-align:center; font-family:inherit; -webkit-appearance:none; appearance:none; }
.xy-phone-group .xylo-input-wrap { flex:1; min-width:0; }

/* Agreement checkbox */
.xylo-agree { display:flex; align-items:flex-start; gap:10px; cursor:pointer; user-select:none; margin:16px 0; }
.xylo-agree input { display:none; }
.xylo-agree .xylo-check-box { margin-top:1px; }
/* checked state — must mirror .xylo-check rules for the agreement variant too */
.xylo-agree input:checked + .xylo-check-box { background:#22c55e; border-color:#22c55e; transform:scale(1.05); }
.xylo-agree input:checked + .xylo-check-box svg { opacity:1; transform:scale(1); }
.xylo-agree-label { font-size:13px; color:#cbd5e1; line-height:1.5; }
.xylo-agree-label a { color:#22c55e; text-decoration:none; font-weight:600; pointer-events:auto; }
.xylo-agree-label a:hover { text-decoration:underline; }
/* Make clicking the label or its text trigger the checkbox, but allow links inside to remain clickable */
.xylo-agree-label { pointer-events:none; }
.xylo-agree-label a { pointer-events:auto; }

/* Hide page header on small screens to give form more room */
@media (max-width:768px) {
    body.auth-bg .header-area { padding:8px 0 !important; }
}
