/* signup.css — redesigned, centred, mobile-first */

/* ── Page shell ─────────────────────────────────────────────── */
body {
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Subtle animated background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(22,192,239,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(8,135,170,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Outer wrapper ──────────────────────────────────────────── */
.signup-outer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* ── Logo above card ────────────────────────────────────────── */
.signup-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.signup-logo .logo-placeholder {
  height: 44px; width: 140px;
  background: rgba(22,192,239,0.1);
  border: 1.5px dashed var(--cyan);
  border-radius: var(--rsm);
  font-size: 11.5px; font-weight: 700;
  color: var(--cyan-deep);
}

/* ── Card ───────────────────────────────────────────────────── */
.signup-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--r);
  border: 1px solid var(--border2);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

/* Top colour bar */
.signup-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
}

/* ── Card inner ─────────────────────────────────────────────── */
.signup-card-inner {
  padding: 2rem 1.75rem 1.75rem;
}

/* ── Header ─────────────────────────────────────────────────── */
.signup-title-row {
  text-align: center;
  margin-bottom: 1.5rem;
}

.signup-title-row h1 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.signup-title-row p {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.5;
}

/* ── Step progress ──────────────────────────────────────────── */
.signup-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.signup-step-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.signup-step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0; transition: all 0.22s;
}
.signup-step-circle.todo   { background: var(--border2); color: var(--text3); border: 1.5px solid var(--border); }
.signup-step-circle.active { background: var(--cyan-dark); color: #fff; border: 1.5px solid var(--cyan-dark); }
.signup-step-circle.done   { background: var(--cyan-lite); color: var(--cyan-dark); border: 1.5px solid var(--cyan); }

.signup-step-line { flex: 1; height: 2px; background: var(--border2); border-radius: 1px; transition: background 0.25s; }
.signup-step-line.done { background: var(--cyan); }

/* ── Divider label ──────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.75rem 0 1rem;
}
.section-divider::before,
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border2);
}
.section-divider span {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text3); white-space: nowrap;
}

/* ── Bottom prompt ──────────────────────────────────────────── */
.signup-prompt-bar {
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: var(--text3);
  padding: 0.5rem 0;
}
.signup-prompt-bar a { color: var(--cyan-dark); font-weight: 600; text-decoration: none; }
.signup-prompt-bar a:hover { text-decoration: underline; }

/* ── Feature list beneath card ──────────────────────────────── */
.signup-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.signup-feature {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text3);
}
.signup-feature-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(22,192,239,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--cyan-dark); font-weight: 700; flex-shrink: 0;
}

/* ── Mobile tweaks ──────────────────────────────────────────── */
@media (max-width: 540px) {
  body { padding: 0.75rem 0.75rem 2rem; justify-content: flex-start; padding-top: 1.5rem; }
  .signup-card-inner { padding: 1.5rem 1.25rem 1.25rem; }
  .signup-title-row h1 { font-size: 19px; }
  .row-2 { grid-template-columns: 1fr; }
  .signup-features { gap: 1rem; }
  .otp-group input { width: 42px; height: 50px; font-size: 20px; }
}

@media (max-width: 360px) {
  .signup-card-inner { padding: 1.25rem 1rem 1rem; }
  .otp-group { gap: 6px; }
  .otp-group input { width: 38px; height: 46px; font-size: 18px; }
}


.phone-row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--border);
    border-radius: var(--rsm);
    overflow: visible;
    position: relative;
    transition: border-color 0.18s, box-shadow 0.18s;
}

    .phone-row:focus-within {
        border-color: var(--cyan-dark);
    }

    .phone-row input[type="number"] {
        flex: 1;
        border: none;
        outline: none;
        padding: 0 13px;
        height: 44px;
        border-radius: 0 var(--rsm) var(--rsm) 0;
        font-family: 'DM Sans', sans-serif;
        font-size: 14px;
        color: var(--text);
        background: transparent;
    }

.phone-prefix-dropdown {
    position: relative;
    flex-shrink: 0;
}

.phone-prefix {
    min-width: 72px;
    padding: 0 12px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    border-right: 1.5px solid var(--border);
    white-space: nowrap;
    user-select: none;
    border-radius: var(--rsm) 0 0 var(--rsm);
    background: var(--card);
}

    .phone-prefix:hover {
        background: var(--surface);
    }

.phone-prefix-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 9999;
    width: 260px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--rsm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    max-height: 260px;
}

    .phone-prefix-menu.open {
        display: block;
    }

.phone-prefix-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.phone-prefix-search {
    padding: 8px;
    border-bottom: 1px solid var(--border2);
}

    .phone-prefix-search input {
        width: 100%;
        padding: 6px 10px;
        border: 1.5px solid var(--border);
        border-radius: var(--rsm);
        font-size: 13px;
        font-family: 'DM Sans', sans-serif;
        color: var(--text);
        background: var(--card);
        outline: none;
    }

        .phone-prefix-search input:focus {
            border-color: var(--cyan-dark);
        }

.location-change {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.875rem;
    cursor: pointer;
}

    .location-change:hover {
        background: #f3f4f6;
    }

.country-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-code {
    color: #888;
    font-size: 0.82rem;
    margin-left: 8px;
    flex-shrink: 0;
}

.signup-error-bar {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
}