
:root {
    --bg: #000000;
    --panel: #0f0f0f;
    --muted-gray: rgba(210,210,210,0.9);
    --orange: #ff8a00;
    --orange-dark: #cc6a00;
    --section-panel: rgba(26,26,26,0.98);
    --accent-border: rgba(255,138,0,0.12);
    --input-bg: rgba(8,8,8,0.9);
    --input-border: rgba(255,255,255,0.06);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { min-height: 100%; background: var(--bg); }
body.signup-page {
    min-height: 150vh; /* ensures scrollable black space above/below form */
    background: linear-gradient(180deg, #000 0%, #070707 20%, #070707 80%, #000 100%);
    color: #eee;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}

/* HEADER (kept subtle) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(5,5,5,0.9));
    backdrop-filter: blur(8px) saturate(120%);
    display: flex;
    align-items: center;
    padding: 0 22px;
    z-index: 120;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.header-logo { height: 40px; width: auto; display: block; }

/* FORM WRAPPER */
.form-wrap {
    max-width: 760px;
    margin: 120px auto 100px;
    padding: 22px;
    position: relative;
    z-index: 2;
}

/* FORM PANEL */
.signup-form {
    background: var(--section-panel);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 60px rgba(0,0,0,0.7);
    border-left: 6px solid var(--accent-border);
    overflow: visible;
}

/* HEADINGS */
.form-title {
    color: var(--orange);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 14px;
}
.hint {
    color: rgba(255,255,255,0.78);
    text-align: center;
    margin-bottom: 18px;
    font-size: 14px;
}

/* FIELDS */
.field { margin: 18px 0; display: block; }
.field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 8px;
}

/* INPUTS & SELECTS (dark) */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field select,
.other-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: #eee;
    font-size: 15px;
    transition: all 180ms ease;
    caret-color: var(--orange);
}

/* Placeholder color */
.field input::placeholder { color: rgba(255,255,255,0.45); }

/* Focus */
.field input:focus,
.field select:focus,
.other-input:focus {
    outline: none;
    border-color: rgba(255,138,0,0.32);
    box-shadow: 0 6px 20px rgba(255,138,0,0.06);
}

/* SELECT (dark + custom arrow) */
select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--input-bg);
    color: #eee;
    padding-right: 42px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23FFFFFF' d='M12.14 5.36 8 9.5 3.86 5.36 2.5 6.72 8 12.22l5.5-5.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 12px) center;
    border-radius: 8px;
}

/* OPTIONS (best-effort; browser dependent) */
select option {
    background-color: #0b0b0b;
    color: #fff;
}

/* Disabled placeholder option styling */
select option[disabled] { color: rgba(255,255,255,0.5); background-color: rgba(10,10,10,0.95); }

/* RADIO GROUP */
.field-group.radios {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 14px 0 20px;
}
.radio { display:flex; align-items:center; gap:10px; cursor:pointer; color:#eaeaea; font-weight:700; }
.radio input[type="radio"] { width:18px; height:18px; accent-color: var(--orange); }

/* NOTE BUTTON */
.note-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    display: inline-grid;
    place-items: center;
    transition: all 140ms ease;
}
.note-btn:hover { background: rgba(255,255,255,0.04); border-color: var(--orange); transform: translateY(-2px); }

/* NOTE BOX */
.note {
    font-size: 13px;
    color: #cfcfcf;
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(0,0,0,0.22);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
}

/* CONNECT ROW */
.connect-row { display:flex; align-items:center; gap:12px; }
.small-check { display:flex; align-items:center; gap:8px; color:#cfcfcf; font-size:14px; cursor:pointer; }
.small-check input[type="checkbox"] { width:16px; height:16px; accent-color: var(--orange); }

/* OTHER INPUT (hidden by JS unless needed) */
.other-input.hidden { display: none; }

/* ACTIONS / SUBMIT */
.actions { margin-top: 26px; text-align: center; }
.btn-submit {
    background: var(--orange);
    color: #0b0b0b;
    border: none;
    padding: 12px 34px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 36px rgba(255,138,0,0.08);
    transition: all 160ms ease;
}
.btn-submit:hover { background: var(--orange-dark); color: #fff; transform: translateY(-3px); }
.btn-submit:active { transform: translateY(0); box-shadow: none; }

/* FOOTER */
.site-footer {
    background: rgba(0,0,0,0.95);
    padding: 20px 16px;
    text-align: center;
    margin-top: 30px;
}
.footer-content {
    max-width: 760px;
    margin: 0 auto;
    color: #8c8c8c;
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    font-size: 14px;
}
.footer-content a { color: #8c8c8c; text-decoration:none; }

/* ERROR STATES */
.error { border-color: #ff3e3e !important; box-shadow: 0 0 0 3px rgba(255,62,62,0.08) !important; }
.error-message { color: #ff6b6b; font-size:13px; margin-top:6px; }

/* UTILITIES */
.hidden { display: none; }

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 820px) {
    .form-wrap { margin: 100px 18px 60px; padding: 0; }
    .signup-form { padding: 20px; border-radius: 12px; }
    .form-title { font-size: 22px; }
    .field { margin: 14px 0; }
    .connect-row { flex-direction: column; align-items: stretch; gap:10px; }
    select { padding-right: 36px; }
}
@media (max-width: 480px) {
    .site-header { height: 64px; padding: 0 12px; }
    .header-logo { height: 34px; }
    .form-wrap { margin: 80px 12px 40px; }
    .btn-submit { padding: 10px 22px; font-size:15px; }
}

/* ...existing css content (use your file contents) ... */

/* Add autofill overrides near the inputs section */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #eee !important;
    transition: background-color 5000s ease-in-out 0s !important;
    box-shadow: 0 0 0px 1000px rgba(8,8,8,0.9) inset !important;
    background-color: rgba(8,8,8,0.9) !important;
}

/* Keep read-only inputs same style */
input[readonly] {
    background: rgba(8,8,8,0.9);
    color: #eee;
}

/* ensure error class doesn't override autofill background */
.error {
    box-shadow: 0 0 0 3px rgba(255,62,62,0.06) !important;
    border-color: #ff3e3e !important;
}

/* ...existing code... */

.password-wrapper { position: relative; }
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 44px; /* space for the toggle */
}

/* toggle button inside input */
.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #fff;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toggle-password:hover { opacity: 0.9; transform: translateY(-50%) scale(1.02); }

/* small accessible focus */
.toggle-password:focus { outline: 2px solid rgba(255,138,0,0.22); border-radius: 6px; }

/* Style for legal links */
a.legal-link, .form-group a[href*="privacy"], .form-group a[href*="terms"] {
    color: #ff9800;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
    border-radius: 4px;
    padding: 2px 4px;
}

a.legal-link:hover, .form-group a[href*="privacy"]:hover, .form-group a[href*="terms"]:hover {
    color: #ffc876;
    text-decoration: none;
}

