/* ============================================================
   login.css — Baliwas FX Life Plan · Login page styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
    --bg-main:    #071A1F;
    --bg-card:    #0D2B33;
    --bg-card2:   #0a2028;
    --teal-mid:   #007B8E;
    --teal-bright:#00B4CC;
    --gold:       #E8B400;
    --gold-light: #FFD440;
    --mint:       #00D4C8;
    --text-muted: #8AADB5;
    --text-white: #FFFFFF;
    --border:     rgba(0,180,204,0.15);
    --danger:     #e05a5a;
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
    min-height: 100%;
    display: flex;
    overflow: hidden;
}

/* ── Animated background canvas ── */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Grid overlay texture ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image:
            linear-gradient(rgba(0,180,204,0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(0,180,204,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* ── Split layout ── */
.lg-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* ── Left panel — branding ── */
.lg-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

/* Decorative orbs */
.lg-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,180,204,0.09) 0%, transparent 65%);
    top: -100px; left: -100px;
    pointer-events: none;
}
.lg-left::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,180,0,0.07) 0%, transparent 65%);
    bottom: -80px; right: -60px;
    pointer-events: none;
}

/* Logo */
.lg-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeUp 0.7s ease both;
}
.lg-logo-mark {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--teal-mid), var(--teal-bright));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 16px; font-weight: 800;
    color: #fff;
    box-shadow: 0 0 28px rgba(0,180,204,0.25);
}
.lg-logo-text { line-height: 1.2; }
.lg-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 14px; font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}
.lg-logo-sub {
    font-size: 10px; font-weight: 400;
    color: var(--teal-bright);
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

/* Hero text */
.lg-hero { animation: fadeUp 0.8s 0.1s ease both; }

.lg-tagline {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal-bright);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.lg-tagline::before {
    content: '';
    display: block;
    width: 28px; height: 1.5px;
    background: var(--teal-bright);
}

.lg-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-white);
    letter-spacing: -1px;
}
.lg-heading .accent { color: var(--teal-bright); }
.lg-heading .gold   { color: var(--gold); }

.lg-desc {
    margin-top: 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 380px;
}

/* Stats strip */
.lg-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    animation: fadeUp 0.8s 0.2s ease both;
}
.lg-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 24px; font-weight: 700;
    color: var(--text-white);
}
.lg-stat-value .unit { font-size: 14px; color: var(--gold); }
.lg-stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* Trust badges */
.lg-badges {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}
.lg-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,180,204,0.07);
    border: 1px solid rgba(0,180,204,0.18);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px; color: var(--text-muted);
}
.lg-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mint);
    flex-shrink: 0;
}

/* ── Right panel — form ── */
.lg-right {
    width: 460px;
    min-width: 320px;
    background: var(--bg-card2);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    position: relative;
    animation: slideIn 0.6s ease both;
}
.lg-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal-bright), transparent);
}

.lg-form-head { margin-bottom: 32px; }
.lg-form-title {
    font-family: 'Syne', sans-serif;
    font-size: 24px; font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
}
.lg-form-sub {
    font-size: 13px; color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.6;
}

/* ── Form fields ── */
.lg-form  { display: flex; flex-direction: column; gap: 16px; }
.lg-field { display: flex; flex-direction: column; gap: 7px; }
.lg-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.7px; text-transform: uppercase;
    color: var(--text-muted);
}

.lg-input-wrap { position: relative; }
.lg-input-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none; font-size: 15px;
    transition: color 0.2s;
}
.lg-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px;
    padding: 12px 14px 12px 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; color: var(--text-white);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lg-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.lg-input:focus {
    border-color: rgba(0,180,204,0.55);
    background: rgba(0,180,204,0.04);
    box-shadow: 0 0 0 3px rgba(0,180,204,0.1);
}
.lg-input-wrap:focus-within .lg-input-icon { color: var(--teal-bright); }

/* Password toggle */
.lg-pw-toggle {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: var(--text-muted); font-size: 15px;
    transition: color 0.2s; user-select: none;
}
.lg-pw-toggle:hover { color: var(--teal-bright); }
.lg-input.pw { padding-right: 40px; }

/* Remember & forgot row */
.lg-meta-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: -4px;
}
.lg-remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lg-cb {
    width: 16px; height: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; transition: all 0.15s;
}
.lg-cb.checked { background: var(--teal-mid); border-color: var(--teal-bright); }
.lg-cb-check   { font-size: 10px; color: #fff; opacity: 0; transition: opacity 0.15s; }
.lg-cb.checked .lg-cb-check { opacity: 1; }
.lg-remember-label { font-size: 12px; color: var(--text-muted); }
.lg-forgot      { font-size: 12px; color: var(--teal-bright); cursor: pointer; text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

/* Submit button */
.lg-submit {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--teal-mid), var(--teal-bright));
    border: none; border-radius: 11px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px; font-weight: 600;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: all 0.25s;
    position: relative; overflow: hidden;
    margin-top: 4px;
    box-shadow: 0 4px 24px rgba(0,180,204,0.2);
    letter-spacing: 0.3px;
}
.lg-submit::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
    opacity: 0; transition: opacity 0.2s;
}
.lg-submit:hover        { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(0,180,204,0.3); }
.lg-submit:hover::before{ opacity: 1; }
.lg-submit:active       { transform: translateY(0); }
.lg-submit.loading      { pointer-events: none; }
.lg-submit.loading .lg-spinner  { display: block; }
.lg-submit.loading .lg-btn-text { opacity: 0.7; }

.lg-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

/* Divider */
.lg-divider {
    display: flex; align-items: center; gap: 12px;
    font-size: 11px; color: var(--text-muted);
}
.lg-divider::before,
.lg-divider::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(255,255,255,0.07);
}

/* Social buttons */
.lg-social-btn {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    transition: all 0.2s;
}
.lg-social-btn:hover {
    border-color: rgba(0,180,204,0.3);
    color: var(--text-white);
}
.lg-social-row { display: flex; gap: 10px; }

/* Error alert */
.lg-error {
    background: rgba(224,90,90,0.1);
    border: 1px solid rgba(224,90,90,0.3);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--danger);
    display: none;
    align-items: center;
    gap: 9px;
}
.lg-error.show { display: flex; }
.lg-error-icon { flex-shrink: 0; font-size: 15px; }

/* Success overlay */
.lg-success-overlay {
    position: absolute; inset: 0;
    background: var(--bg-card2);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 16px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s;
}
.lg-success-overlay.show { opacity: 1; pointer-events: all; }
.login-panel.hide {display: none; }
.lg-success-check {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--teal-mid), var(--mint));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    animation: popIn 0.5s cubic-bezier(0.18, 1.4, 0.6, 1) both;
}
.lg-success-text {
    font-family: 'Syne', sans-serif;
    font-size: 18px; font-weight: 700;
    color: var(--text-white); text-align: center;
}
.lg-success-sub { font-size: 13px; color: var(--text-muted); text-align: center; }

/* Form footer */
.lg-form-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
}
.lg-form-footer a       { color: var(--teal-bright); text-decoration: none; cursor: pointer; }
.lg-form-footer a:hover { text-decoration: underline; }

/* Copyright */
.lg-copyright {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    text-align: center;
    font-size: 11px; color: rgba(138,173,181,0.4);
}

/* Floating particles */
.lg-particles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.lg-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--teal-bright);
    opacity: 0;
    animation: float linear infinite;
}

/* Back button (forgot password panel) */
.lg-back-btn {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--text-muted);
    cursor: pointer; margin-bottom: 8px;
    transition: color 0.15s; width: fit-content;
}
.lg-back-btn:hover { color: var(--teal-bright); }

/* ── Keyframe animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes popIn {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
@keyframes float {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    10%  { opacity: 1; }
    90%  { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100vh) scale(0.5); }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,180,204,0.3); }
    50%       { box-shadow: 0 0 0 8px rgba(0,180,204,0); }
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .lg-left { display: none; }
    .lg-right { width: 100%; border-left: none; padding: 40px 28px; }
    .lg-right::before { display: none; }
    body::after {
        content: '';
        position: fixed; inset: 0; z-index: 0;
        background: radial-gradient(ellipse at 50% 0%, rgba(0,180,204,0.1) 0%, transparent 60%);
        pointer-events: none;
    }
}
@media (max-width: 400px) {
    .lg-right { padding: 32px 20px; }
}

/* Scrollbar */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,180,204,0.2); border-radius: 4px; }

/* Signup-specific extensions to login.css */
.lg-right { overflow-y: auto; }

/* Step indicator */
.sg-steps { display:flex; align-items:center; gap:0; margin-bottom:22px; }
.sg-step { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:600; color:var(--text-muted); }
.sg-step.active { color:var(--teal-bright); }
.sg-step.done   { color:var(--mint); }
.sg-step-dot { width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:700; flex-shrink:0; transition:all .2s; }
.sg-step.active .sg-step-dot { background:var(--teal-mid); border-color:var(--teal-bright); color:#fff; }
.sg-step.done   .sg-step-dot { background:var(--mint); border-color:var(--mint); color:#fff; }
.sg-step-line { flex:1; height:1px; background:rgba(255,255,255,.07); margin:0 8px; min-width:20px; transition:background .3s; }
.sg-step-line.done { background:var(--mint); }

/* Password strength */
.sg-strength { display:flex; align-items:center; gap:6px; margin-top:6px; }
.sg-strength-bars { display:flex; gap:3px; flex:1; }
.sg-bar { height:3px; flex:1; border-radius:2px; background:rgba(255,255,255,.08); transition:background .2s; }
.sg-bar.weak   { background:#e05a5a; }
.sg-bar.medium { background:var(--gold); }
.sg-bar.strong { background:var(--mint); }
.sg-strength-label { font-size:10px; font-weight:600; min-width:44px; text-align:right; }
.sg-strength-label.weak   { color:#e05a5a; }
.sg-strength-label.medium { color:var(--gold); }
.sg-strength-label.strong { color:var(--mint); }

/* Referral badge */
.sg-ref-badge { display:flex; align-items:center; gap:8px; padding:8px 12px; background:rgba(0,212,200,.07); border:1px solid rgba(0,212,200,.25); border-radius:9px; font-size:12px; color:var(--mint); margin-bottom:4px; }

/* Terms checkbox */
.sg-terms { display:flex; align-items:flex-start; gap:10px; font-size:12px; color:var(--text-muted); line-height:1.5; cursor:pointer; }
.sg-terms-cb { width:18px; height:18px; border-radius:5px; border:1.5px solid rgba(255,255,255,.2); background:rgba(255,255,255,.04); display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; transition:all .2s; }
.sg-terms-cb.checked { background:var(--teal-mid); border-color:var(--teal-bright); }
.sg-cb-icon { font-size:10px; color:#fff; display:none; }
.sg-terms-cb.checked .sg-cb-icon { display:block; }
.sg-terms a { color:var(--teal-bright); text-decoration:none; }
.sg-terms a:hover { text-decoration:underline; }

/* Back button */
.sg-back { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); cursor:pointer; margin-bottom:16px; transition:color .2s; }
.sg-back:hover { color:var(--teal-bright); }

/* Section label */
.sg-section-label { font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--text-muted); border-bottom:1px solid rgba(255,255,255,.06); padding-bottom:6px; margin-bottom:12px; }

/* Row */
.sg-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Select field */
.lg-input.sg-select { appearance:none; -webkit-appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238AADB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:32px; cursor:pointer; }
.lg-input.sg-select option { background:#0D2B33; }

/* Email verify screen */
.sg-verify-box { text-align:center; padding:8px 0 4px; display:flex; flex-direction:column; align-items:center; gap:16px; }
.sg-verify-ring { width:80px; height:80px; border-radius:50%; background:rgba(0,212,200,.1); border:2px solid rgba(0,212,200,.3); display:flex; align-items:center; justify-content:center; font-size:34px; animation:sgPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes sgPop { from{transform:scale(0)} to{transform:scale(1)} }
.sg-verify-title { font-family:'Syne',sans-serif; font-size:22px; font-weight:700; color:var(--text-white); }
.sg-verify-sub { font-size:13px; color:var(--text-muted); line-height:1.6; max-width:300px; }
.sg-verify-email { font-weight:600; color:var(--teal-bright); }
.sg-resend { font-size:12px; color:var(--text-muted); }
.sg-resend-btn { color:var(--teal-bright); cursor:pointer; }
.sg-resend-btn:hover { text-decoration:underline; }

/* Field errors */
.lg-input.error { border-color:rgba(224,90,90,.55) !important; }
.sg-field-err { font-size:11px; color:#e05a5a; margin-top:3px; display:none; }
.sg-field-err.show { display:block; }

/* ── Full-screen success overlay ── */
.sg-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: linear-gradient(160deg, #071A1F 0%, #0a2028 50%, #071A1F 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
    overflow: hidden;
}
.sg-overlay.show { display: flex; }

/* Particle canvas */
.sg-overlay-canvas {
    position: absolute; inset: 0;
    pointer-events: none;
}

/* Glowing ring */
.sg-ov-ring {
    width: 110px; height: 110px;
    border-radius: 50%;
    background: rgba(0,212,200,0.1);
    border: 2px solid rgba(0,212,200,0.35);
    box-shadow: 0 0 40px rgba(0,212,200,0.15), 0 0 80px rgba(0,180,204,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px;
    position: relative; z-index: 1;
    animation: sgRingIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes sgRingIn {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* Pulse ring */
.sg-ov-ring::after {
    content: '';
    position: absolute; inset: -12px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,200,0.2);
    animation: sgPulse 2s ease-in-out infinite;
}
@keyframes sgPulse {
    0%,100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.1); opacity: 0; }
}

.sg-ov-tag {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--teal-bright);
    margin-top: 28px;
    animation: sgFadeUp .5s .15s ease both;
    position: relative; z-index: 1;
}
.sg-ov-title {
    font-family: 'Syne', sans-serif;
    font-size: 32px; font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    margin-top: 10px;
    animation: sgFadeUp .5s .25s ease both;
    position: relative; z-index: 1;
}
.sg-ov-title span { color: var(--mint); }
.sg-ov-email-box {
    margin-top: 18px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(0,180,204,0.07);
    border: 1px solid rgba(0,180,204,0.22);
    border-radius: 12px;
    padding: 12px 20px;
    animation: sgFadeUp .5s .35s ease both;
    position: relative; z-index: 1;
    max-width: 400px;
}
.sg-ov-email-icon {
    font-size: 22px; flex-shrink: 0;
}
.sg-ov-email-label {
    font-size: 12px; color: var(--text-muted); text-align: left;
}
.sg-ov-email-addr {
    font-size: 14px; font-weight: 700;
    color: var(--teal-bright); margin-top: 2px;
    word-break: break-all;
}
.sg-ov-desc {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.7; max-width: 360px;
    margin-top: 18px;
    animation: sgFadeUp .5s .4s ease both;
    position: relative; z-index: 1;
}
.sg-ov-steps {
    display: flex; gap: 14px; margin-top: 22px;
    flex-wrap: wrap; justify-content: center;
    animation: sgFadeUp .5s .48s ease both;
    position: relative; z-index: 1;
}
.sg-ov-step {
    display: flex; align-items: flex-start; gap: 9px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 11px; padding: 12px 14px;
    text-align: left; max-width: 140px;
}
.sg-ov-step-num {
    width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; margin-top: 1px;
}
.sg-ov-step-num.teal { background: rgba(0,180,204,0.18); color: var(--teal-bright); }
.sg-ov-step-num.gold { background: rgba(232,180,0,0.18); color: var(--gold); }
.sg-ov-step-num.mint { background: rgba(0,212,200,0.18); color: var(--mint); }
.sg-ov-step-text { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.sg-ov-actions {
    display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; justify-content: center;
    animation: sgFadeUp .5s .55s ease both;
    position: relative; z-index: 1;
}
.sg-ov-btn-primary {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--teal-mid), var(--teal-bright));
    border: none; border-radius: 11px;
    font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
    color: #fff; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: opacity .2s;
}
.sg-ov-btn-primary:hover { opacity: .88; }
.sg-ov-btn-secondary {
    padding: 12px 22px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 11px;
    font-family: 'DM Sans', sans-serif; font-size: 14px;
    color: var(--text-muted); cursor: pointer;
    transition: all .2s;
}
.sg-ov-btn-secondary:hover { border-color: rgba(255,255,255,.2); color: var(--text-white); }
.sg-ov-resend {
    font-size: 12px; color: var(--text-muted); margin-top: 16px;
    position: relative; z-index: 1;
    animation: sgFadeUp .5s .6s ease both;
}
.sg-ov-resend-btn { color: var(--teal-bright); cursor: pointer; }
.sg-ov-resend-btn:hover { text-decoration: underline; }

@keyframes sgFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width:540px) {
    .sg-ov-title { font-size: 26px; }
    .sg-ov-ring  { width: 88px; height: 88px; font-size: 38px; }
    .sg-ov-steps { flex-direction: column; align-items: center; }
    .sg-ov-step  { max-width: 100%; }
}

@media (max-width:540px) {
    .sg-row { grid-template-columns:1fr; }
    .sg-steps { display:none; }
}

/* ── In-panel registration success toast ── */
.sg-reg-toast {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px;
    background: rgba(0,212,200,0.08);
    border: 1px solid rgba(0,212,200,0.35);
    border-radius: 12px;
    animation: sgToastIn .35s cubic-bezier(.34,1.56,.64,1) both;
    margin-bottom: 4px;
}
@keyframes sgToastIn {
    from { opacity:0; transform:scale(.95) translateY(8px); }
    to   { opacity:1; transform:scale(1)  translateY(0);    }
}
.sg-reg-toast-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0,212,200,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.sg-reg-toast-title {
    font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700;
    color: var(--mint); line-height: 1.3;
}
.sg-reg-toast-sub {
    font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5;
}
.sg-reg-toast-email {
    font-weight: 600; color: var(--text-white);
    font-size: 12px; display: block; margin-top: 2px;
}
.sg-reg-toast-progress {
    height: 3px; background: rgba(0,212,200,0.15);
    border-radius: 2px; margin-top: 10px; overflow: hidden;
}
.sg-reg-toast-bar {
    height: 100%; width: 100%;
    background: linear-gradient(90deg, var(--teal-mid), var(--mint));
    border-radius: 2px;
    animation: sgToastBar 1.6s linear forwards;
}
@keyframes sgToastBar { from { width:100% } to { width:0% } }

/* ── Mobile logo (hidden on desktop, shown when left panel collapses) ── */
.lg-mobile-logo {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}
.lg-mobile-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007B8E, #00B4CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,180,204,0.3);
    overflow: hidden;
}
.lg-mobile-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lg-mobile-logo-name {
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}
.lg-mobile-logo-sub {
    font-size: 10px;
    color: var(--teal-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* ── Responsive ── */
@media (max-width: 820px) {
    .lg-left  { display: none; }
    .lg-right { width: 100%; border-left: none; padding: 40px 28px; }
    .lg-right::before { display: none; }
    .lg-mobile-logo { display: flex; }
    body::after {
        content: '';
        position: fixed; inset: 0; z-index: 0;
        background: radial-gradient(ellipse at 50% 0%, rgba(0,180,204,0.1) 0%, transparent 60%);
        pointer-events: none;
    }
}
@media (max-width: 400px) {
    .lg-right { padding: 32px 20px; }
    .lg-mobile-logo-mark { width: 38px; height: 38px; font-size: 13px; border-radius: 10px; }
    .lg-mobile-logo-name { font-size: 13px; }
}