/* ============================================================
   ZimLink — sign.css  (v2.0 — Refined)
   Dark premium theme with green accent
   Fonts: Outfit (headings/brand) | Plus Jakarta Sans (body)
   Colours: unchanged from v1
   ============================================================ */

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

:root {
    --green:        #1db954;
    --green-dark:   #17a348;
    --green-glow:   rgba(29, 185, 84, 0.28);
    --green-soft:   rgba(29, 185, 84, 0.09);
    --bg:           #090d09;
    --card:         #111811;
    --card2:        #162016;
    --border:       rgba(29, 185, 84, 0.2);
    --border-dim:   rgba(255,255,255,0.07);
    --text:         #edf5ed;
    --muted:        #7a9278;
    --error:        #ff5c5c;
    --ok:           #1db954;
    --white:        #ffffff;
    --radius:       14px;
    --radius-sm:    10px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --font-head:    'Outfit', 'Segoe UI', sans-serif;
    --font-body:    'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    min-height: 100vh;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Ambient orbs ---- */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}
.orb1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(29,185,84,0.18) 0%, transparent 70%);
    top: -120px; left: -120px;
    animation: orbFloat 12s ease-in-out infinite;
}
.orb2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(29,185,84,0.1) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation: orbFloat 16s ease-in-out infinite reverse;
}
.orb3 {
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(29,185,84,0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}

/* ---- Page Layout ---- */
.page-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.58), 0 0 0 1px var(--border);
    animation: fadeUp 0.48s var(--ease) both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- LEFT PANEL ---- */
.left-panel {
    background: linear-gradient(148deg, #0c150c 0%, #0f1f0f 50%, #112011 100%);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231db954' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.8;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    object-fit: cover;
    transition: border-color 0.2s var(--ease);
}
.brand:hover .brand-logo { border-color: rgba(29,185,84,0.5); }
.brand-name {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 22px;
    color: var(--green);
    letter-spacing: -0.4px;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.left-headline {
    font-family: var(--font-head);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.left-headline .accent { color: var(--green); }

.left-sub {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    max-width: 280px;
    margin-bottom: 36px;
}

.left-stats {
    display: flex;
    gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    color: var(--green);
    line-height: 1;
    letter-spacing: -0.5px;
}
.stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.left-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--green-soft);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    width: fit-content;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.trust-badge:hover {
    background: rgba(29,185,84,0.13);
    border-color: rgba(29,185,84,0.35);
}
.trust-badge svg { color: var(--green); flex-shrink: 0; }

/* ---- RIGHT PANEL ---- */
.right-panel {
    background: var(--card);
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.right-panel::-webkit-scrollbar { width: 5px; }
.right-panel::-webkit-scrollbar-track { background: transparent; }
.right-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ---- Step Bar ---- */
.steps-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
}
.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--card2);
    border: 2px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    transition: all 0.28s var(--ease);
}
.step span {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.28s var(--ease);
}
.step.active .step-circle {
    background: var(--green);
    border-color: var(--green);
    color: white;
    box-shadow: 0 0 14px var(--green-glow);
}
.step.active span { color: var(--green); }
.step.done .step-circle {
    background: var(--green-soft);
    border-color: var(--green);
    color: var(--green);
}
.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-dim);
    margin: 0 8px;
    margin-bottom: 15px;
    transition: background 0.3s var(--ease);
    border-radius: 2px;
}
.step-line.done { background: var(--green); }

/* ---- Form Steps ---- */
.form-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: stepIn 0.32s var(--ease) both;
}
.form-step.hidden { display: none; }

@keyframes stepIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}

.step-header h1 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}
.step-header p {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
}
.step-header.centered { text-align: center; }

/* ---- Social Buttons ---- */
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dim);
    background: var(--card2);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    width: 100%;
}
.social-btn:hover {
    border-color: var(--border);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.social-btn.full-w { grid-column: 1 / -1; }

/* ---- Divider ---- */
.divider-or {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}
.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-dim);
}

/* ---- Field Groups ---- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field-group label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}
.label-hint {
    color: var(--muted);
    font-weight: 400;
    font-style: italic;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="tel"] {
    height: 46px;
    background: var(--card2);
    border: 1.5px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.22s var(--ease);
    width: 100%;
    outline: none;
}
.field-group input:focus {
    border-color: var(--green);
    background: rgba(29,185,84,0.05);
    box-shadow: 0 0 0 3px var(--green-glow);
}
.field-group input::placeholder { color: #3a4d3a; }

.input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-prefix {
    position: absolute;
    left: 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
}
.input-prefix-wrap input { padding-left: 36px !important; }

/* ---- Password ---- */
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 48px !important; }
.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s var(--ease);
    border-radius: 5px;
}
.toggle-pw:hover { color: var(--text); }
.toggle-pw svg { display: block; }

/* Password strength */
.pw-strength-bar {
    height: 3px;
    background: var(--border-dim);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}
.pw-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: all 0.4s var(--ease);
    background: var(--error);
}
.pw-strength-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--muted);
}

/* ---- Errors & OK ---- */
.field-error {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--error);
    display: none;
    line-height: 1.4;
}
.field-error.show { display: block; animation: errShake 0.3s var(--ease); }
.field-ok {
    font-family: var(--font-body);
    font-size: 11.5px;
    color: var(--ok);
    display: none;
}
.field-ok.show { display: block; }
.centered { text-align: center; display: block; }

@keyframes errShake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}

/* ---- Role Picker ---- */
.role-picker { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.role-card { cursor: pointer; }
.role-card input[type="radio"] { display: none; }
.role-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-dim);
    background: var(--card2);
    transition: all 0.2s var(--ease);
}
.role-icon { font-size: 22px; }
.role-svg { color: var(--muted); transition: color 0.18s var(--ease); }
.role-card input:checked + .role-content .role-svg { color: var(--green); }
.role-name {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.1px;
}
.role-card input:checked + .role-content {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: 0 0 0 2.5px var(--green-glow);
}
.role-card input:checked + .role-content .role-name { color: var(--green); }
.role-content:hover {
    border-color: rgba(29,185,84,0.4);
    transform: translateY(-1px);
}

/* ---- Terms ---- */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}
.terms-check input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--green);
    cursor: pointer;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.terms-check a { color: var(--green); text-decoration: none; font-weight: 600; }
.terms-check a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: var(--green);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.24s var(--ease);
}
.btn-main:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--green-glow);
}
.btn-main:active { transform: translateY(0); box-shadow: none; }
.btn-arrow { font-size: 18px; transition: transform 0.2s var(--ease); }
.btn-icon { transition: transform 0.2s var(--ease); flex-shrink: 0; }
.btn-main:hover .btn-arrow,
.btn-main:hover .btn-icon { transform: translateX(4px); }
.btn-main.full-w { width: 100%; }

.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.btn-back {
    height: 50px;
    padding: 0 20px;
    background: var(--card2);
    border: 1.5px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-back:hover { border-color: var(--border); color: var(--text); }

.switch-link {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
}
.switch-link a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}
.switch-link a:hover { text-decoration: underline; }

/* ---- Verify email icon ---- */
.verify-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background: var(--green-soft);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    margin: 0 auto 10px;
    color: var(--green);
    transition: box-shadow 0.2s var(--ease);
}
.verify-header-icon:hover { box-shadow: 0 0 0 6px var(--green-glow); }

.otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 8px 0;
}
.otp-box {
    width: 48px !important;
    height: 58px !important;
    text-align: center;
    font-family: var(--font-head) !important;
    font-size: 24px !important;
    font-weight: 800;
    background: var(--card2) !important;
    border: 2px solid var(--border-dim) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    padding: 0 !important;
    transition: all 0.22s var(--ease) !important;
    caret-color: var(--green);
    outline: none;
}
.otp-box:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px var(--green-glow) !important;
    background: rgba(29,185,84,0.07) !important;
}
.otp-box.filled {
    border-color: var(--green) !important;
    color: var(--green) !important;
}

.resend-line {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--muted);
}
.resend-btn {
    background: none;
    border: none;
    color: var(--green);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.18s;
}
.resend-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.resend-btn:hover:not(:disabled) { opacity: 0.8; }
.link-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.18s var(--ease);
}
.link-btn:hover { color: var(--text); }

/* ---- Success Overlay ---- */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.28s var(--ease);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.success-overlay.hidden { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.success-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 48px 52px;
    text-align: center;
    box-shadow: 0 0 60px var(--green-glow), 0 8px 32px rgba(0,0,0,0.4);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    max-width: 420px;
    width: 90%;
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.84); }
    to   { opacity: 1; transform: scale(1); }
}

.success-check {
    width: 70px;
    height: 70px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px var(--green-glow);
    animation: successPulse 1s ease-in-out infinite;
}
@keyframes successPulse {
    0%, 100% { box-shadow: 0 0 30px var(--green-glow); }
    50%       { box-shadow: 0 0 50px rgba(29,185,84,0.48); }
}

.success-card h2 {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}
.success-card p {
    font-family: var(--font-body);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}
.success-sub { margin-top: 6px; font-size: 12px !important; }
.success-progress {
    margin-top: 22px;
    height: 3px;
    background: var(--border-dim);
    border-radius: 4px;
    overflow: hidden;
}
.success-bar {
    height: 100%;
    background: var(--green);
    width: 0%;
    transition: width 2.5s linear;
    border-radius: 4px;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 26px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.38);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s;
    opacity: 0;
    z-index: 8888;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 9px;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 750px) {
    .page-wrap {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .left-panel { display: none; }
    .right-panel {
        padding: 28px 24px;
        max-height: none;
        border-radius: 20px;
    }
    .field-row { grid-template-columns: 1fr; }
    .otp-box { width: 42px !important; height: 52px !important; font-size: 20px !important; }
    .social-row { grid-template-columns: 1fr; }
    .success-card { padding: 36px 28px; }
}

@media (max-width: 400px) {
    .right-panel { padding: 22px 18px; }
    .otp-group { gap: 7px; }
    .otp-box { width: 38px !important; height: 46px !important; font-size: 18px !important; }
}