/* PixWed Registration Page Styles — Royal Gold & Amber Luxury Edition */
.registration-page {
  background: #f8fafc;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.registration-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
}

/* Left Story Column — Regal Royal Gold & Amber Gradient */
.registration-story {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(254, 240, 138, 0.45) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, #b45309 0%, #d97706 40%, #f59e0b 80%, #fbbf24 100%);
  padding: 64px;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Brand badge in registration story — Prominent, Big & Crisp PixWed Logo */
.registration-story .brand,
.registration-story .pixwed-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  background: #ffffff !important;
  padding: 12px 26px 12px 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18), 0 3px 8px rgba(0, 0, 0, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  width: fit-content !important;
  position: relative;
  z-index: 2;
}

.registration-story .brand:hover,
.registration-story .pixwed-brand:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

.registration-story .brand img:first-child,
.registration-story .pixwed-brand .pixwed-brand-icon {
  height: 56px !important;
  width: 56px !important;
  border: 0 !important;
  border-radius: 15px !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28) !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.registration-story .brand img:last-child,
.registration-story .pixwed-brand .pixwed-brand-wordmark {
  height: 52px !important;
  width: 175px !important;
  max-width: 185px !important;
  background: transparent !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.registration-story h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: -1.8px;
  margin: 44px 0 36px;
  font-weight: 800;
  position: relative;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(120, 53, 15, 0.35);
}

.registration-story ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.registration-story li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
  margin: 15px 0;
  font-size: 16px;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.95);
}

.registration-story li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.story-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  padding-top: 16px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.story-trust p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.story-trust small {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.6px;
  margin-top: 10px;
  font-weight: 600;
}

.story-trust > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.story-trust > div > span {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.story-waves {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 100%;
  height: 320px;
  pointer-events: none;
  opacity: 0.7;
}

/* Right Main Column — Warm Amber Ambient Glow */
.registration-main {
  background: radial-gradient(ellipse at 0 0, rgba(254, 243, 199, 0.75), transparent 45%),
              radial-gradient(ellipse at right, rgba(254, 240, 138, 0.4), transparent 50%),
              #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 40px;
  min-width: 0;
}

.registration-assistant {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 460px;
  width: 100%;
  margin-bottom: 18px;
}

.registration-assistant svg {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.2));
}

.registration-assistant p {
  position: relative;
  line-height: 1.5;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 12px 18px;
  margin: 0;
  color: #334155;
  font-size: 13.5px;
  backdrop-filter: blur(8px);
}

.registration-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 460px;
  padding: 34px;
  backdrop-filter: blur(16px);
}

.registration-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 13px;
}

.registration-progress-label b {
  font-weight: 700;
  color: #1e293b;
}

.registration-progress-label small {
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
}

.registration-panel h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 12px 0 28px;
  color: #0f172a;
}

.registration-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.registration-panel .field {
  margin-bottom: 22px;
}

.registration-panel .field label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.registration-panel .field input,
.registration-panel .field select {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  min-height: 48px;
  padding: 13px 20px;
  color: #1e293b;
  font-size: 13.5px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-panel .field input:focus,
.registration-panel .field select:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2) !important;
  outline: none;
}

.registration-panel input::placeholder {
  color: #94a3b8;
}

.registration-panel .subdomain-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.subdomain-label label {
  margin-bottom: 0 !important;
}

.subdomain-label small {
  font-size: 10.5px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: 20px;
}

.subdomain-input {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subdomain-input:focus-within {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.2);
}

.registration-panel .subdomain-input input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  min-width: 0;
  flex: 1;
  box-shadow: none !important;
}

.subdomain-input > span {
  border-left: 1px solid #e2e8f0;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #64748b;
  font-size: 13px;
  background: #f8fafc;
  white-space: nowrap;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-hint {
  color: #94a3b8;
  font-size: 11.5px;
  margin-top: 5px;
  display: block;
}

.agency-address {
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fef08a;
  border-radius: 18px;
  font-size: 12px;
  color: #64748b;
  overflow-wrap: anywhere;
  margin-top: 10px;
}

.agency-address strong {
  font-weight: 600;
  color: #b45309;
}

.registration-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.registration-actions .btn {
  border-radius: 30px;
  min-height: 50px;
  font-size: 13.5px;
  font-weight: 600;
  justify-content: space-between;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.registration-actions #registration-back {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  padding: 12px 20px;
}

.registration-actions #registration-back:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
}

.registration-actions .primary {
  flex: 1;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.registration-actions .primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.45) !important;
}

.registration-actions .primary span {
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 28px;
  height: 28px;
}

.registration-actions .primary:disabled {
  background: #94a3b8 !important;
  color: #f1f5f9 !important;
  opacity: 0.65;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.registration-progress {
  height: 7px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 32px;
}

.registration-progress span {
  display: block;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  width: 25%;
  height: 100%;
  border-radius: 6px;
  transition: width 0.25s ease;
}

.registration-stepper {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 16px 0 25px;
}

.registration-stepper li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.registration-stepper li > span {
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  transition: all 0.2s ease;
}

.registration-stepper li.active {
  color: #b45309;
  font-weight: 700;
}

.registration-stepper li.active > span {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.registration-stepper li.complete {
  color: #d97706;
}

.registration-stepper li.complete > span {
  background: #d97706;
  color: #ffffff;
}

.registration-login {
  text-align: center;
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
}

.registration-login a {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.registration-login a:hover {
  color: #b45309;
  text-decoration: underline;
}

.registration-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 11.5px;
  color: #94a3b8;
}

.registration-footer > div {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.registration-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.registration-footer a:hover {
  color: #d97706;
}

/* Region selection (Step 2) */
.region-intro {
  font-size: 12.5px;
  color: #64748b;
  margin: -8px 0 18px;
  line-height: 1.6;
}

.region-choices {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.region-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-choice > input {
  accent-color: #d97706;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.region-choice > span {
  flex: 1;
}

.region-choice strong {
  display: block;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 600;
}

.region-choice small {
  display: block;
  color: #64748b;
  font-size: 10.5px;
  margin-top: 3px;
  line-height: 1.4;
}

.region-choice svg {
  display: none;
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
}

.region-choice:has(input:checked) {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.12);
}

.region-choice:has(input:checked) svg {
  display: block;
}

.registration-error, #subdomain-error {
  color: #b91c1c;
  font-size: 12px;
  margin-top: 6px;
  display: block;
}

.phone-input, .password-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.registration-panel .phone-input select {
  width: 110px;
  flex-shrink: 0;
  padding: 12px;
  font-size: 12px;
}

.registration-panel .phone-input input {
  min-width: 0;
  flex: 1;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 65px !important;
}

.password-input button {
  position: absolute;
  right: 14px;
  background: none;
  border: 0;
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  padding: 5px;
  cursor: pointer;
}

.password-input button:hover {
  color: #b45309;
}

.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

fieldset[hidden] {
  display: none !important;
}

.registration-mobile-brand {
  display: none;
}

/* Responsive layout */
@media (min-width: 1500px) {
  .registration-story {
    padding-left: 12%;
  }
  .registration-story h1 {
    font-size: 58px;
  }
  .registration-main {
    padding: 48px;
  }
}

@media (max-width: 1050px) {
  .registration-story {
    padding: 40px;
  }
  .registration-story h1 {
    font-size: 42px;
  }
  .registration-main {
    padding: 28px;
  }
}

@media (max-width: 800px) {
  .registration-layout {
    display: block;
  }
  .registration-story {
    display: none;
  }
  .registration-main {
    min-height: 100vh;
    padding: 26px 20px;
  }
  .registration-mobile-brand {
    display: flex !important;
    justify-content: center !important;
    margin: 0 auto 24px !important;
  }
  .registration-mobile-brand .brand,
  .registration-mobile-brand .pixwed-brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #ffffff !important;
    padding: 10px 22px 10px 12px !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f1f5f9 !important;
    text-decoration: none !important;
  }
  .registration-mobile-brand img:first-child,
  .registration-mobile-brand .pixwed-brand-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
  }
  .registration-mobile-brand img:last-child,
  .registration-mobile-brand .pixwed-brand-wordmark {
    width: 140px !important;
    height: 42px !important;
    max-width: 150px !important;
    object-fit: contain !important;
  }
  .registration-assistant {
    max-width: 450px;
  }
  .registration-panel {
    padding: 25px;
  }
  .registration-panel h1 {
    font-size: 24px;
  }
  .registration-stepper li {
    font-size: 11px;
    gap: 4px;
  }
  .registration-stepper li > span {
    width: 21px;
    height: 21px;
  }
  .registration-footer {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .registration-progress span {
    transition: none;
  }
}
