:root {
  --bg-1: #f8faff;
  --bg-2: #eef2ff;
  --bg-3: #f3f4ff;
  --card: rgba(255, 255, 255, 0.74);
  --card-border: rgba(255, 255, 255, 0.6);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #5b5ef8;
  --primary-2: #7a5cff;
  --focus: rgba(91, 94, 248, 0.2);
  --success: #16a34a;
  --error: #ef4444;
  --ring: rgba(91, 94, 248, 0.12);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(52, 64, 130, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(65rem 35rem at 8% -15%, #dbeafe 0%, transparent 70%),
    radial-gradient(40rem 30rem at 95% 110%, #ede9fe 0%, transparent 65%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.signup-shell {
  width: 100%;
  max-width: 560px;
  animation: fadeIn 0.65s ease both;
}

.signup-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.signup-header {
  text-align: center;
  margin-bottom: 24px;
}

.signup-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(91, 94, 248, 0.3);
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.02em;
}

.subheading {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.floating-input,
.floating-select {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d6deea;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.floating-input:focus,
.floating-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus), 0 8px 18px var(--ring);
  background: #fff;
}

.field label {
  position: static;
  order: -1;
  left: auto;
  top: auto;
  transform: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: #5f6778;
  pointer-events: auto;
  background: transparent;
  transition: none;
  padding: 0;
  margin-bottom: 2px;
}

.floating-input:focus + label,
.floating-input:not(:placeholder-shown) + label,
.floating-select:focus + label,
.floating-select.has-value + label {
  top: auto;
  transform: none;
  font-size: 0.92rem;
  color: #5f6778;
  background: transparent;
}

.helper,
.status-msg {
  margin-top: 0;
  font-size: 0.79rem;
  line-height: 1.35;
  color: var(--muted);
  min-height: 0;
}

.status-msg.error {
  color: var(--error);
}

.status-msg.success {
  color: var(--success);
}

.field.state-error .floating-input,
.field.state-error .floating-select {
  border-color: var(--error);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.field.state-success .floating-input,
.field.state-success .floating-select {
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.store-url-preview {
  margin-top: -2px;
  font-size: 0.78rem;
  color: #475569;
  word-break: break-all;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.phone-wrap {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 10px;
  align-items: end;
}

.country-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #d6deea;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  color: #1e293b;
  min-height: 48px;
  padding: 0 8px;
}

#mobileField .phone-wrap > .field {
  display: block;
  position: relative;
}

#mobileField .phone-wrap > .field .floating-input {
  min-height: 48px;
  padding: 0 16px;
}

#mobileField .phone-wrap > .field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 4px;
  font-size: 0.89rem;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
  background: transparent;
}

#mobileField .phone-wrap > .field .floating-input:focus + label,
#mobileField .phone-wrap > .field .floating-input:not(:placeholder-shown) + label {
  top: -1px;
  transform: translateY(-50%);
  font-size: 0.74rem;
  color: var(--primary);
  background: #fff;
}

.password-wrap {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 40%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.strength-meter {
  margin-top: 2px;
  width: 100%;
}

.strength-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  position: relative;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.strength-label {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  margin-top: 2px;
}

.checkbox-row input {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

.checkbox-row a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.cta-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 24px rgba(92, 82, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  margin-top: 8px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(92, 82, 255, 0.34);
  filter: brightness(1.05);
}

.cta-btn:active {
  transform: translateY(0);
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.83rem;
  color: #334155;
  justify-content: center;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-list .tick {
  color: #0ea5a4;
  font-weight: 800;
}

.footer-note {
  margin-top: 4px;
  text-align: center;
  color: #475569;
  font-size: 0.86rem;
}

.footer-note a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.copyright {
  margin-top: 10px;
  text-align: center;
  font-size: 0.77rem;
  color: #64748b;
}

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

@media (min-width: 720px) {
  .signup-card {
    padding: 30px 32px;
  }
}

@media (max-width: 719px) {
  .signup-shell {
    max-width: 100%;
  }

  .signup-card {
    padding: 24px 18px;
  }

  .phone-wrap {
    grid-template-columns: 108px 1fr;
    gap: 8px;
  }
}
