/* Global Variables & Theme Setup - Light Theme */
:root {
  --primary: #c92778;
  /* Bitezor Pink */
  --primary-hover: #b01b63;
  --danger: #dc2626;
  /* Bright Warning Red */
  --danger-hover: #b91c1c;
  --bg-light: #f8fafc;
  /* Soft Slate background */
  --card-bg: #ffffff;
  /* Pure white card */
  --border-color: #e2e8f0;
  /* Slate 200 border */
  --text-primary: #0f172a;
  /* Slate 900 text */
  --text-muted: #64748b;
  /* Slate 500 secondary text */
  --white: #ffffff;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow backgrounds - Soft & Subtle for Light Theme */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, var(--danger) 0%, transparent 70%);
}

/* Base Layout */
.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  z-index: 1;
}

/* Header & Logo */
.header {
  padding: 12px 0 32px 0;
  display: flex;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo__brand {
  color: var(--text-primary);
}

.logo__accent {
  color: var(--primary);
}

/* Main Grid Layout */
.card-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

/* Left Column: Info Section */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.info-item:hover {
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.info-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(201, 39, 120, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.info-item__icon svg {
  width: 22px;
  height: 22px;
}

.info-item:nth-child(2) .info-item__icon {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.info-item__content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.info-item__content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.warning-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.warning-banner__icon {
  flex-shrink: 0;
  color: var(--danger);
  display: flex;
  align-items: center;
}

.warning-banner__icon svg {
  width: 20px;
  height: 20px;
}

.warning-banner__text {
  font-size: 0.9rem;
  color: #7f1d1d;
  line-height: 1.45;
}

/* Right Column: Form Card */
.form-section {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-step.active {
  opacity: 1;
  transform: translateY(0);
}

.form-step.hidden {
  display: none !important;
}

.form-step form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.step-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Inputs & Form Controls */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Phone input wrappers */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #cbd5e1;
  /* Slate 300 */
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 39, 120, 0.15);
}

.country-prefix {
  padding: 0 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-right: 1px solid #cbd5e1;
  background: #f1f5f9;
  /* Slate 100 */
  height: 48px;
  display: flex;
  align-items: center;
}

input[type="tel"],
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.phone-input-wrapper input {
  flex: 1;
  width: auto;
}

input[type="text"]#otp-code {
  background: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]#otp-code:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(201, 39, 120, 0.15);
}

input[type="text"]#otp-code::placeholder {
  letter-spacing: normal;
  font-size: 0.95rem;
  font-weight: 400;
  color: #94a3b8;
}

input.input--error,
.phone-input-wrapper:has(input.input--error) {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.error-msg {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.error-msg.visible {
  display: block;
  animation: shake 0.3s ease;
}

/* OTP Countdown / Resend */
.resend-wrapper {
  display: flex;
  justify-content: flex-end;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resend-wrapper strong {
  color: var(--text-primary);
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--primary-hover);
}

/* Checkbox group styling */
.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.checkbox-group:hover {
  background: #f1f5f9;
}

.checkbox-group input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

/* Buttons */
.btn {
  position: relative;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(201, 39, 120, 0.25);
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(201, 39, 120, 0.35);
}

.btn--danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn--danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.btn--secondary {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-primary);
}

.btn--secondary:hover:not(:disabled) {
  background: #e2e8f0;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Spinner */
.btn__spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Toast styling */
.toast {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  z-index: 10;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.05);
}

.toast--success {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05);
}

/* Highlight tags */
.phone-highlight {
  color: var(--text-primary);
  font-weight: 600;
}

/* Success View Illustration */
.success-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--success);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--success);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.checkmark-circle__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-circle__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--success);
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-desc {
  font-size: 0.95rem !important;
  color: var(--text-muted);
  line-height: 1.6 !important;
  margin-bottom: 12px;
}

/* Footer Styling */
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 12px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.separator {
  color: #cbd5e1;
}

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

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {

  0%,
  100% {
    transform: none;
  }

  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.08);
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .card-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 32px;
  }

  .info-section {
    gap: 18px;
  }

  .title {
    font-size: 2.3rem;
  }

  .form-section {
    padding: 32px;
    min-height: auto;
    order: -1;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 16px 16px;
  }

  .header {
    padding-bottom: 24px;
  }

  .title {
    font-size: 2rem;
  }

  .form-section {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .page-footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 20px;
  }
}

.hidden {
  display: none !important;
}