/* signup.css - Creator College Design System */

body {
  background: var(--onboarding-page-background);
  font-family: var(--font-sans);
  color: var(--text-primary, #212121);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 20px 48px;
}

body::before,
body::after {
  content: none;
}

.message {
  max-width: 620px;
  margin: 0 auto 1rem auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.signup-shell {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}

.signup-card {
  position: relative;
  margin: 0 auto;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,251,250,0.97) 100%);
  border: 1px solid rgba(142, 58, 89, 0.08);
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(17, 17, 17, 0.12);
  padding: 2.35rem 2.5rem 2.6rem;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.signup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--secondary-color) 100%);
  opacity: 0.95;
}

.selection-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  justify-content: center;
}

.selection-option {
  border: 1px solid rgba(142, 58, 89, 0.12);
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.25rem;
  cursor: pointer;
  transition: all 0.24s ease;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #fcf7f8 100%);
  width: 100%;
  position: relative;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.selection-option:hover {
  border-color: rgba(142, 58, 89, 0.35);
  background: linear-gradient(180deg, #fff 0%, #f9f2f4 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.1);
}

.selection-option.active {
  border-color: rgba(142, 58, 89, 0.4);
  background: linear-gradient(180deg, #fff 0%, #f8eff2 100%);
  box-shadow: 0 0 0 1px rgba(142, 58, 89, 0.2);
}

.selection-icon {
  font-size: 1.5rem;
  background: linear-gradient(145deg, #f8eff2 0%, #fcf8f5 100%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(142, 58, 89, 0.08);
}

.selection-text h6 {
  margin: 0;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

.selection-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin-bottom: 2rem;
  cursor: pointer;
  width: fit-content;
}

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

.logo-container {
  text-align: center;
  margin-bottom: 2.05rem;
}

.logo-container img {
  max-width: 308px;
}

.signup-brand-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.signup-kicker,
.signup-panel-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(142, 58, 89, 0.08);
  color: var(--primary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-hero-title {
  margin: 1rem auto 0.85rem;
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.signup-hero-copy {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.signup-proof {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(142, 58, 89, 0.08);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

.signup-proof p {
  margin: 0;
  max-width: 18rem;
  text-align: left;
  color: #684451;
  font-size: 0.84rem;
  line-height: 1.45;
}

.signup-proof-avatars {
  display: flex;
  align-items: center;
  margin-right: 0.15rem;
}

.signup-proof-avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.signup-proof-avatars img + img {
  margin-left: -10px;
}

.signup-panel-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.signup-panel-header-left {
  text-align: left;
}

.signup-panel-copy {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  color: #7a5a66;
  font-size: 0.9rem;
  line-height: 1.55;
}

.signup-panel-header-left .signup-panel-copy {
  margin-left: 0;
}

.selection-pill {
  margin-left: auto;
  align-self: flex-start;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(142, 58, 89, 0.08);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
}

.selection-pill-muted {
  color: #815462;
  background: rgba(129, 84, 98, 0.08);
}

.owner-step {
  width: 100%;
}

.owner-step-header {
  margin-bottom: 1.5rem;
}

.owner-step-meta {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(142, 58, 89, 0.08);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.owner-step-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
}

.owner-step-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.step-back-link {
  background: none;
  border: none;
  color: #6f4b58;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1rem;
  cursor: pointer;
}

.step-back-link:hover {
  color: var(--text-primary);
}

/* Floating label/modern input style */
.input-group-custom {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.input-group-custom input,
.input-group-custom select {
  width: 100%;
  padding: 1.25rem 1.25rem 0.5rem 1.25rem;
  font-size: 1rem;
  border: 1px solid rgba(142, 58, 89, 0.12) !important;
  border-radius: 18px !important;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.input-group-custom input[type="password"],
.input-group-custom input[type="text"]#password {
  padding-right: 5rem;
}

.input-group-custom label {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #757575);
  padding: 0;
  margin: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 1rem;
  z-index: 10;
}

/* Focused & filled state */
.input-group-custom input:focus,
.input-group-custom input:not(:placeholder-shown),
.input-group-custom select:focus,
.input-group-custom select:not([value=""]) {
  border-color: rgba(93, 78, 85, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(93, 78, 85, 0.12) !important;
}

.input-group-custom input:focus+label,
.input-group-custom input:not(:placeholder-shown)+label,
.input-group-custom select:focus+label,
.input-group-custom select.has-value+label {
  top: 10px;
  transform: translateY(0);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6f4b58 !important;
}

.signup-shell .input-group-custom input:is(:invalid, :user-invalid),
.signup-shell .input-group-custom select:is(:invalid, :user-invalid),
.signup-shell .phone-segment:is(:invalid, :user-invalid) {
  border-color: rgba(93, 78, 85, 0.32) !important;
  box-shadow: 0 0 0 3px rgba(93, 78, 85, 0.08) !important;
}

.signup-shell .input-group-custom input:is(:focus:invalid, :focus:user-invalid),
.signup-shell .input-group-custom select:is(:focus:invalid, :focus:user-invalid),
.signup-shell .phone-segment:is(:focus:invalid, :focus:user-invalid) {
  border-color: rgba(93, 78, 85, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(93, 78, 85, 0.12) !important;
}

.input-group-custom input::placeholder {
  color: transparent;
}

.signup-shell button.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  z-index: 11;
  transform: translateY(-50%);
  min-width: 3.25rem;
  padding: 0.35rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: #6f4b58;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.signup-shell button.password-visibility-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
  background: rgba(178, 21, 69, 0.07);
  color: #b21545;
}

.signup-shell button.password-visibility-toggle:focus-visible {
  outline: 2px solid #b21545;
  outline-offset: 2px;
}

/* Specific labels for selects and special inputs that don't use floating labels well */
.field-label {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: block;
}

.specialty-group {
  margin-bottom: 1.5rem;
}

.specialty-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.specialty-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
  font-weight: 600;
  color: var(--text-primary);
}

.specialty-option:hover {
  border-color: rgba(178, 21, 69, 0.2);
  background-color: #fff5f8;
  transform: translateY(-1px);
}

.specialty-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--primary-color);
}

.specialty-option:has(.specialty-checkbox:checked) {
  border-color: rgba(178, 21, 69, 0.34);
  background-color: #fff1f5;
  box-shadow: 0 0 0 3px rgba(178, 21, 69, 0.08);
}

/* Custom Select & Segmented Phone styling */
.form-select-custom,
.phone-segment {
  padding: 1rem 1.25rem !important;
  border-radius: 18px !important;
  border: 1px solid rgba(178, 21, 69, 0.12) !important;
  font-size: 1rem !important;
  height: auto !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  transition: border-color 0.2s ease;
}

.form-select-custom {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.phone-segment:focus {
  border-color: rgba(93, 78, 85, 0.42) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 78, 85, 0.12) !important;
}

.phone-input-group {
  gap: 8px;
}

.phone-segment-divider {
  color: #e5e7eb;
}

/* Buttons */
.btn-signup {
  background: linear-gradient(135deg, #b21545 0%, #d61a53 100%) !important;
  color: white !important;
  border: none;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 18px 34px rgba(178, 21, 69, 0.22);
}

.btn-signup:hover {
  background: linear-gradient(135deg, #99103b 0%, #c8164c 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(178, 21, 69, 0.28);
}

.btn-google {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(178, 21, 69, 0.12);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 12px 28px rgba(44, 5, 18, 0.04);
}

.btn-google:hover {
  border-color: rgba(178, 21, 69, 0.24);
  background: #fff7f9;
  transform: translateY(-1px);
}

/* Divider */
.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
  display: flex;
  align-items: center;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}

.divider span {
  padding: 0 15px;
  color: #8d6b77;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Auth footer */
.auth-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a {
  color: #6f4b58;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--text-dark);
}

.footer-bullet {
  margin: 0 8px;
  opacity: 0.3;
}

/* Loading Overlay */
#loading-overlay {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-mascot {
  max-width: 96px;
  width: 28vw;
  height: auto;
  display: block;
  animation: loading-mascot-bounce 1.2s ease-in-out infinite;
}

@keyframes loading-mascot-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.signup-message {
  font-weight: 600;
  color: var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  body {
    padding: 18px 12px 28px;
    justify-content: center;
  }

  body::before,
  body::after {
    display: none;
  }

  .message {
    margin-bottom: 1rem;
  }

  .signup-card {
    min-height: auto;
    padding: 1.4rem 1rem 1.5rem;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(44, 5, 18, 0.1);
  }

  .signup-card::before {
    height: 8px;
  }

  .logo-container {
    margin-bottom: 1.35rem;
  }

  .logo-container img {
    max-width: 228px;
  }

  .signup-brand-intro {
    margin-bottom: 1.25rem;
  }

  .signup-hero-title {
    margin: 0 auto;
    max-width: 10.5ch;
    font-size: clamp(1.65rem, 8vw, 2rem);
    line-height: 1.06;
  }

  .signup-panel-header {
    margin-bottom: 0.95rem;
  }

  .selection-option {
    gap: 0.85rem;
    align-items: center;
    padding: 1rem;
    border-radius: 18px;
  }

  .selection-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.25rem;
  }

  .selection-text h6 {
    font-size: 0.95rem;
  }

  .owner-step-header {
    margin-bottom: 1.1rem;
  }

  .owner-step-title {
    font-size: 1.4rem;
  }

  .owner-step-meta {
    margin-bottom: 0.65rem;
  }

  .selection-pill {
    margin-left: 0;
  }

  .input-group-custom,
  .specialty-group,
  .mb-4 {
    margin-bottom: 1rem !important;
  }

  .input-group-custom input,
  .input-group-custom select,
  .form-select-custom,
  .phone-segment {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-signup,
  .btn-google {
    min-height: 52px;
    font-size: 0.96rem;
  }

  .divider {
    margin: 1.35rem 0;
  }

  .auth-footer {
    margin-top: 1.25rem;
    font-size: 0.82rem;
  }

  .specialty-options {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .specialty-option {
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
  }

  .phone-input-group {
    gap: 6px;
  }

  .phone-segment-divider {
    display: none;
  }

  .loading-mascot {
    max-width: 80px;
    width: 24vw;
    min-width: 60px;
  }
}

@media (max-width: 420px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .signup-card {
    padding: 1.25rem 0.9rem 1.35rem;
  }

  .signup-hero-title {
    max-width: 10ch;
    font-size: 1.52rem;
  }

  .selection-option {
    padding: 0.9rem;
  }

  .selection-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .step-back-link,
  .back-btn,
  .auth-footer {
    font-size: 0.8rem;
  }
}
