/* User create account — mockup-style page */
:root {
  --us-red: #1a1a1a;
  --us-red-dark: #333333;
  --us-red-deeper: #000000;
  --us-pink-bg: #f0f0f0;
  --us-text: #1f1f1f;
  --us-muted: #9a9a9a;
  --us-border: #e8e8e8;
  --us-page-top: env(safe-area-inset-top, 0px);
}

html.zimoo-android-app.zimoo-signup-page,
html.zimoo-android-app.user-signup-page {
  --us-page-top: env(safe-area-inset-top, 0px);
}

html.zimoo-android-app .user-signup-page {
  --us-page-top: env(safe-area-inset-top, 0px);
}

html.user-signup-page,
html.zimoo-signup-page {
  height: 100%;
  overflow: hidden;
}

.user-signup-page {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

.user-signup-app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* ── Red hero header ── */
.user-signup-hero {
  position: relative;
  flex-shrink: 0;
  background: var(--us-red);
  padding: calc(var(--us-page-top) + 8px) 20px 48px;
  text-align: center;
  overflow: hidden;
}

.user-signup-back {
  position: absolute;
  top: calc(var(--us-page-top) + 8px);
  left: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--us-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.user-signup-back:active {
  transform: scale(0.94);
  opacity: 0.85;
}

.user-signup-back svg {
  width: 20px;
  height: 20px;
}

.user-signup-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.user-signup-deco--bag {
  right: 8px;
  top: calc(var(--us-page-top) + 36px);
  width: 96px;
  height: 96px;
  opacity: 0.9;
}

.user-signup-logo-wrap {
  position: relative;
  z-index: 2;
  display: inline-flex;
}

.user-signup-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin: 0 auto;
}

.user-signup-logo .zimoo-logo-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.user-signup-hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 36px;
  background: #fff;
  border-radius: 32px 32px 0 0;
  z-index: 3;
}

/* ── White form panel ── */
.user-signup-panel {
  flex: 1;
  min-height: 0;
  margin-top: -20px;
  padding: 4px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 28px 28px 0 0;
  position: relative;
  z-index: 4;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.user-signup-title {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--us-text);
  letter-spacing: -0.02em;
  text-align: center;
}

.user-signup-title .is-red {
  color: var(--us-red);
}

.user-signup-sub {
  margin: 0 0 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--us-muted);
  text-align: center;
}

/* Photo upload */
.user-signup-photo-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.user-signup-photo-label {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.user-signup-photo-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed #d4d4d4;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.user-signup-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-signup-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
}

.user-signup-photo-placeholder svg {
  color: var(--us-red);
}

.user-signup-photo-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--us-red);
  line-height: 1.2;
}

.user-signup-photo-plus {
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--us-red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(239, 51, 45, 0.35);
}

.user-signup-hidden-input {
  display: none;
}

/* Form fields */
.user-signup-field {
  margin-bottom: 14px;
}

.user-signup-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--us-text);
  margin-bottom: 8px;
}

.user-signup-input-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--us-border);
  border-radius: 12px;
  height: 50px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s;
}

.user-signup-input-row:focus-within {
  border-color: var(--us-red);
}

.user-signup-input-icon {
  flex-shrink: 0;
  width: 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--us-pink-bg);
  color: var(--us-red);
}

.user-signup-input-row > input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--us-text);
  background: transparent;
  min-width: 0;
  padding: 0 14px 0 10px;
}

.user-signup-input-row > input::placeholder {
  color: #b8b8b8;
  font-weight: 400;
}

.user-signup-input-row input[type="date"] {
  color: var(--us-text);
}

.user-signup-input-row input[type="date"]:invalid {
  color: #b8b8b8;
}

.user-signup-input-chevron {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  color: var(--us-red);
  pointer-events: none;
}

.user-signup-eye-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.user-signup-eye-btn:active {
  opacity: 0.7;
}

.user-signup-eye-icons {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
}

.user-signup-eye-icon {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 50% 50%;
}

.user-signup-eye-icon--show {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.user-signup-eye-icon--hide {
  opacity: 0;
  transform: scale(0.55) rotate(-14deg);
}

.user-signup-eye-btn.is-visible .user-signup-eye-icon--show {
  opacity: 0;
  transform: scale(0.55) rotate(14deg);
}

.user-signup-eye-btn.is-visible .user-signup-eye-icon--hide {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.user-signup-eye-btn.is-animating .user-signup-eye-icons {
  animation: userSignupEyePop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes userSignupEyePop {
  0% { transform: scale(1); }
  40% { transform: scale(0.78); }
  100% { transform: scale(1); }
}

.user-signup-dob-row {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 2px;
  padding: 0 4px 0 8px;
}

.user-signup-dob-row input {
  flex: 0 0 auto;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--us-text);
  background: transparent;
  text-align: center;
  padding: 0;
}

.user-signup-dob-row input#ua-ca-dob-day,
.user-signup-dob-row input#ua-ca-dob-month {
  width: 2.4ch;
  min-width: 2.4ch;
}

.user-signup-dob-row input#ua-ca-dob-year {
  width: 4.6ch;
  min-width: 4.6ch;
}

.user-signup-dob-row input::placeholder {
  color: #b8b8b8;
  font-weight: 500;
  font-size: 14px;
  opacity: 1;
}

.user-signup-dob-sep {
  color: #b8b8b8;
  font-weight: 600;
  flex-shrink: 0;
  user-select: none;
  font-size: 14px;
  line-height: 1;
}

.user-signup-dob-picker-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--us-red);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.user-signup-dob-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Messages */
.user-signup-error,
.user-signup-success {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: none;
  text-align: center;
}

.user-signup-error {
  background: #fdecea;
  color: #d93025;
}

.user-signup-success {
  background: #e8f5e9;
  color: #2e7d32;
}

.user-signup-error.show,
.user-signup-success.show {
  display: block;
}

/* Submit button */
.user-signup-submit-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 12px;
  background: var(--us-red);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 52px;
  margin-top: 6px;
  transition: background 0.15s;
  touch-action: manipulation;
}

.user-signup-submit-btn:hover {
  background: var(--us-red-dark);
}

.user-signup-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.user-signup-submit-chevron {
  position: absolute;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--us-red-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-signup-footer {
  margin: 20px 0 8px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.user-signup-footer a {
  color: var(--us-red);
  font-weight: 700;
  text-decoration: none;
}
