/* ═══ TOKENS ═══ */
:root {
  --accent-primary: #ee5100;
  --accent-secondary: #d2691e;
  --accent-gradient: linear-gradient(135deg, #ee5100, #d2691e);
  --accent-gradient-hover: linear-gradient(135deg, #d2691e, #ee5100);
  --error-color: #ef4444;
  --success-color: #38761d;
  --text-main: #222222;
  --text-muted: #666666;
  --input-bg: #ffffff;
  --input-bg-hover: #fcfcfc;
  --border-focus: rgba(238, 81, 0, 0.6);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ═══ VIP LIGHT ORANGE BODY ═══ */
body {
  font-family: var(--font-family);
  min-height: 100vh;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #f7f7f7;
  color: var(--text-main);
}

/* Header Gradient */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 35vh;
  background: linear-gradient(180deg, #8b4513 0%, #d2691e 80%, #f7f7f7 100%);
  z-index: 0;
}

/* ═══ CONTAINER (no card — open cinematic layout) ═══ */
.signup-container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 420px;
  animation: fadeIn 0.9s ease forwards;
}

/* Hide card chrome — flat cinematic look */
.glass-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

/* ═══ HEADER / LOGO ═══ */
.header {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #ffffff;
  display: inline-block;
  animation: logoPulse 2.8s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.5));
  }
}

.accent-text {
  color: #FFD166;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.7);
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  color: var(--text-main);
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ═══ REFERRAL NOTICE ═══ */
.ref-notice {
  background: rgba(238, 81, 0, 0.1);
  border: 1px solid rgba(238, 81, 0, 0.2);
  color: var(--accent-primary);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 40px;
  margin-bottom: 16px;
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}

.ref-notice strong {
  font-family: monospace;
  letter-spacing: 1px;
  color: var(--text-main);
}

/* ═══ INPUT GROUPS ═══ */
.input-group {
  margin-bottom: 14px;
  position: relative;
}

/* Hide labels — pill style uses placeholder text */
.input-group label {
  display: none;
}

/* ═══ PILL-SHAPED INPUT BOX ═══ */
.phone-input-wrapper,
.password-wrapper {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  padding: 0 18px;
  border-radius: 40px;
  transition: var(--transition-smooth);
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.phone-input-wrapper:hover,
.password-wrapper:hover {
  background: var(--input-bg-hover);
}

.phone-input-wrapper:focus-within,
.password-wrapper:focus-within {
  background: var(--input-bg-hover);
  box-shadow: 0 0 10px rgba(238, 81, 0, 0.2);
  border-color: var(--accent-primary);
}

/* Country code text */
.country-code {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Country picker button */
.country-picker-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 14px 10px 14px 0;
  border-right: 1px solid #eaeaea;
  margin-right: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.country-picker-btn:hover { opacity: 0.75; }
.country-picker-btn:active { opacity: 0.55; }

.country-flag-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
  display: inline-block;
}

.cp-chevron {
  color: #999;
  flex-shrink: 0;
}

/* Inputs inside pill wrappers — use wrapper selector so styles persist when type toggles */
.phone-input-wrapper input,
.password-wrapper input {
  flex-grow: 1;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 12px;
  font-family: var(--font-family);
}

.phone-input-wrapper input::placeholder,
.password-wrapper input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Phone input border fix */
.phone-input-wrapper input {
  border: none;
  padding-left: 0;
}

.phone-input-wrapper input[type="tel"]:focus {
  box-shadow: none;
}

/* ═══ PASSWORD EYE TOGGLE ═══ */
.password-wrapper {
  position: relative;
  padding-right: 14px;
}

.toggle-password {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px 4px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: var(--accent-primary);
}

.eye-icon {
  width: 18px;
  height: 18px;
}

/* ═══ STRENGTH BAR ═══ */
.strength-bar-container {
  height: 3px;
  background: #eaeaea;
  border-radius: 2px;
  margin-top: 6px;
  margin-left: 18px;
  margin-right: 18px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* ═══ FIELD HELPERS ═══ */
.field-hint {
  font-size: 0.72rem;
  color: #888;
  margin-top: 5px;
  padding-left: 18px;
}

.validation-message {
  font-size: 0.7rem;
  color: var(--error-color);
  margin-top: 4px;
  padding-left: 18px;
  display: block;
  min-height: 12px;
  opacity: 0;
  transform: translateY(-3px);
  transition: all 0.2s ease-out;
}

.validation-message.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ TERMS ROW ═══ */
.terms-container {
  margin-bottom: 6px;
  padding-left: 4px;
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 18px;
  height: 18px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid #ccc;
  border-radius: 5px;
  display: inline-block;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition-smooth);
  margin-top: 1px;
}

.checkbox-wrapper:hover input~.checkmark {
  border-color: var(--accent-primary);
}

.checkbox-wrapper input:checked+.checkmark {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(238, 81, 0, 0.3);
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-wrapper input:checked~.checkmark::after {
  display: block;
}

.terms-text {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
}

.terms-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
}

.terms-text a:hover {
  text-decoration: underline;
}

/* ═══ SUBMIT BUTTON ═══ */
.submit-btn {
  margin-top: 22px;
  width: 100%;
  padding: 16px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background: var(--accent-gradient);
  box-shadow: 0 10px 30px rgba(72, 198, 239, 0.4);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(72, 198, 239, 0.6);
  background: var(--accent-gradient-hover);
}

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

.submit-btn:disabled {
  background: #eaeaea !important;
  color: #999 !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* ═══ SPINNER ═══ */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(238, 81, 0, 0.3);
  border-radius: 50%;
  border-top-color: #ee5100;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.spinner.hidden {
  display: none;
}

/* ═══ FEEDBACK TOAST ═══ */
.feedback-toast {
  padding: 10px 16px;
  border-radius: 40px;
  font-size: 0.82rem;
  margin-top: 12px;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  border: 1px solid transparent;
}

.feedback-toast.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success-color);
  border-color: rgba(16, 185, 129, 0.25);
}

.feedback-toast.error {
  background: rgba(239, 68, 68, 0.12);
  color: var(--error-color);
  border-color: rgba(239, 68, 68, 0.25);
}

.feedback-toast.hidden {
  display: none;
}

/* ═══ LINKS ROW (Sign In + Online Service) ═══ */
.login-redirect {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #888;
}

.login-redirect a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.login-redirect a:hover {
  text-decoration: underline;
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 480px) {
  .signup-container {
    width: 92%;
  }

  .phone-input-wrapper input,
  .password-wrapper input {
    font-size: 16px;
  }
}

.signin-redirect a {
  font-size: medium;
  text-decoration: none;
  font-weight: bold;

}

.signin-redirect a:hover {
  text-decoration: underline;
  color: #4de70b;
}

.logo-img {
  width: 300px;
  height: 50px;
}