/* Authentication and public intake surfaces, aligned with DreamGigs. */
.auth-page {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: calc(100vh - 70px);
  align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  overflow: hidden;
  background: #f9fafb;
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.auth-page::before {
  top: -115px;
  right: -90px;
  width: 315px;
  height: 315px;
  border: 52px solid rgba(255, 105, 0, 0.09);
  border-radius: 50%;
}

.auth-page::after {
  left: -35px;
  bottom: 8%;
  width: 107px;
  height: 135px;
  background: url("../img/dreamgigs/banner-shape-02.png") center / contain no-repeat;
  opacity: 0.38;
}

.auth-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--helpal-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(5, 19, 33, 0.08);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: var(--helpal-orange);
}

.auth-panel-right,
.login-clean .auth-panel-right,
.auth-stack .auth-panel-right {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: #fff;
}

.login-clean {
  width: min(470px, 100%);
  max-width: 470px;
}

.signup-shell-panel {
  max-width: none;
}

.auth-header {
  margin-bottom: 1.8rem;
  text-align: center;
}

.auth-header::before {
  content: "Helpal account";
  display: block;
  margin-bottom: 0.55rem;
  color: var(--helpal-orange-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card-title,
.auth-header h1,
.auth-header h2,
.auth-header h3 {
  margin-bottom: 0.5rem;
  color: var(--helpal-ink);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.auth-subtitle {
  max-width: 540px;
  margin: 0 auto;
  color: var(--helpal-copy);
  font-size: 0.95rem;
  line-height: 1.65;
}

.auth-form .form-label {
  margin-bottom: 0.45rem;
  color: var(--helpal-ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-form .form-control,
.auth-form .form-select {
  min-height: 48px;
  padding-inline: 0.9rem;
  border: 1px solid var(--helpal-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--helpal-ink);
  box-shadow: none;
}

.auth-form textarea.form-control {
  min-height: 135px;
  padding-top: 0.8rem;
}

.auth-form .form-control:focus,
.auth-form .form-select:focus {
  border-color: var(--helpal-orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.11);
}

.auth-form .input-group .form-control {
  border-radius: 8px 0 0 8px;
}

.auth-form .input-group .btn,
.auth-form .input-group .toggle-password {
  min-width: 48px;
  border: 1px solid var(--helpal-line-strong);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: var(--helpal-copy);
}

.auth-form .input-group .btn:hover,
.auth-form .input-group .toggle-password:hover {
  background: #f6f7f8;
  color: var(--helpal-ink);
}

.auth-submit-btn {
  min-height: 48px;
  border-radius: 8px;
  background: var(--helpal-orange);
  color: #fff;
  font-weight: 600;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
  background: var(--helpal-ink);
}

.auth-link-row {
  margin-top: 1.4rem;
  color: var(--helpal-copy);
  font-size: 0.88rem;
  text-align: center;
}

.auth-link-row a,
.auth-muted-link,
.auth-back-link {
  color: var(--helpal-orange-dark);
  font-weight: 600;
  text-decoration: none;
}

.auth-link-row a:hover,
.auth-muted-link:hover,
.auth-back-link:hover {
  color: var(--helpal-ink);
}

.auth-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.65rem;
  border-radius: 6px;
  background: var(--helpal-orange-soft);
  color: var(--helpal-orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-note-box,
.signup-step-note,
.signup-context-comment,
.signup-intake-box,
.signup-manual-box {
  border: 1px solid var(--helpal-line) !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
  box-shadow: none !important;
}

.signup-step-kicker,
.signup-context-comment__label {
  color: var(--helpal-orange-dark) !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
}

.signup-summary-bar {
  gap: 0.5rem !important;
}

.signup-summary-pill {
  padding: 0.45rem 0.7rem !important;
  border: 1px solid #ffd4b7 !important;
  border-radius: 6px !important;
  background: #fff8f3 !important;
  color: var(--helpal-orange-dark) !important;
  font-size: 0.8rem;
  box-shadow: none !important;
}

.signup-summary-pill--soft {
  border-color: var(--helpal-line) !important;
  background: #fff !important;
  color: var(--helpal-copy) !important;
}

.signup-choice-grid {
  gap: 0.85rem !important;
}

.signup-choice-card {
  min-height: 100%;
  padding: 1.25rem !important;
  border: 1px solid var(--helpal-line) !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.signup-choice-card:hover {
  border-color: rgba(255, 105, 0, 0.55) !important;
  box-shadow: 0 6px 18px rgba(5, 19, 33, 0.07) !important;
  transform: translateY(-2px) !important;
}

.signup-choice-card.is-active {
  border-color: var(--helpal-orange) !important;
  background: #fff8f3 !important;
  box-shadow: 0 0 0 2px rgba(255, 105, 0, 0.1) !important;
}

.signup-choice-card.is-active::after {
  top: 0.8rem !important;
  right: 0.8rem !important;
  padding: 0.22rem 0.48rem !important;
  border-radius: 5px !important;
  background: var(--helpal-orange) !important;
  color: #fff !important;
  font-size: 0.65rem !important;
}

.signup-choice-card__icon {
  display: grid !important;
  width: 46px !important;
  height: 46px !important;
  margin-bottom: 0.85rem !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: var(--helpal-orange-soft) !important;
  color: var(--helpal-orange-dark) !important;
}

.signup-choice-card.is-active .signup-choice-card__icon {
  background: var(--helpal-orange) !important;
  color: #fff !important;
}

.signup-choice-card h4 {
  color: var(--helpal-ink);
  font-size: 1.02rem;
}

.signup-choice-card p,
.signup-choice-card__meta,
.signup-step-note,
.signup-context-comment p {
  color: var(--helpal-copy) !important;
  font-size: 0.86rem;
  line-height: 1.58;
}

.signup-guided-note {
  border: 1px solid #f5d89b !important;
  border-radius: 8px !important;
  background: #fff9e8 !important;
  color: #75550f !important;
}

.auth-upload-box {
  padding: 1.35rem;
  border: 1px dashed #c7cbd0;
  border-radius: 8px;
  background: #fff;
}

.auth-upload-box:hover {
  border-color: var(--helpal-orange);
  background: #fff8f3;
  box-shadow: none;
}

.auth-upload-box i {
  color: var(--helpal-orange-dark) !important;
}

.student-social-block {
  margin-top: 1.25rem !important;
  padding: 1rem !important;
  border: 1px solid var(--helpal-line) !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
}

.student-social-btn,
.intake-social-btn {
  min-height: 44px;
  border: 1px solid var(--helpal-line-strong) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--helpal-ink) !important;
  box-shadow: none !important;
  font-size: 0.84rem;
}

.student-social-btn:hover,
.intake-social-btn:hover {
  border-color: var(--helpal-orange) !important;
  transform: none !important;
}

.student-social-divider,
.intake-auth-divider {
  color: var(--helpal-muted) !important;
  font-size: 0.68rem !important;
}

.helpal-processing-overlay {
  background: rgba(5, 19, 33, 0.72) !important;
  backdrop-filter: blur(7px);
}

.helpal-processing-overlay__card {
  width: min(460px, 100%);
  padding: 1.75rem !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  background: var(--helpal-ink) !important;
  color: #fff;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22) !important;
}

.helpal-processing-overlay__spinner {
  border-top-color: var(--helpal-orange) !important;
}

.helpal-processing-overlay__steps [data-processing-step][data-step-state="active"]::before,
.helpal-processing-overlay__steps [data-processing-step][data-step-state="complete"]::before {
  background: var(--helpal-orange) !important;
  box-shadow: 0 0 0 5px rgba(255, 105, 0, 0.18) !important;
}

.auth-success-icon {
  background: #e9f8ef;
  color: #15803d;
}

.auth-reset-page {
  width: 100%;
}

.auth-reset-page .auth-card {
  overflow: hidden;
  border: 1px solid var(--helpal-line) !important;
  border-top: 3px solid var(--helpal-orange) !important;
  border-radius: 10px !important;
  background: #fff;
  box-shadow: 0 8px 28px rgba(5, 19, 33, 0.08) !important;
}

.auth-reset-page .auth-title {
  color: var(--helpal-ink);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
}

.auth-reset-page .border.rounded-4.bg-light {
  border-color: var(--helpal-line) !important;
  border-radius: 8px !important;
  background: #f9fafb !important;
}

/* Signup journey: a product-specific workflow rather than a generic form card. */
.auth-shell--journey {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.75fr);
  min-height: 590px;
}

.auth-shell--journey::before {
  z-index: 4;
}

.auth-journey-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  min-width: 0;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 105, 0, 0.3), transparent 12rem),
    linear-gradient(155deg, #102232 0%, #051321 68%);
  color: #fff;
}

.auth-journey-panel::before,
.auth-journey-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.auth-journey-panel::before {
  right: -7rem;
  bottom: -5rem;
  width: 16rem;
  height: 16rem;
  border: 2.8rem solid rgba(255, 255, 255, 0.045);
}

.auth-journey-panel::after {
  right: 2rem;
  bottom: 4rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--helpal-orange);
  box-shadow: 28px 22px 0 rgba(255, 255, 255, 0.22), -19px 44px 0 rgba(255, 105, 0, 0.48);
}

.auth-journey-panel__eyebrow {
  display: block;
  margin-bottom: 0.85rem;
  color: #ffb27c;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-journey-panel h1 {
  max-width: 15ch;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.auth-journey-panel__intro p {
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.88rem;
  line-height: 1.65;
}

.signup-journey {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup-journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.55);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.signup-journey-step__number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
}

.signup-journey-step strong,
.signup-journey-step small {
  display: block;
}

.signup-journey-step strong {
  color: inherit;
  font-size: 0.84rem;
  line-height: 1.3;
}

.signup-journey-step small {
  margin-top: 0.14rem;
  color: inherit;
  font-size: 0.7rem;
  line-height: 1.35;
  opacity: 0.74;
}

.signup-journey-step.is-active {
  border-color: rgba(255, 178, 124, 0.32);
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
}

.signup-journey-step.is-active .signup-journey-step__number {
  border-color: var(--helpal-orange);
  background: var(--helpal-orange);
  color: #fff;
}

.signup-journey-step.is-complete {
  color: rgba(255, 255, 255, 0.82);
}

.signup-journey-step.is-complete .signup-journey-step__number {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.signup-journey-step.is-skipped {
  display: none;
}

.auth-journey-panel__trust {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.73rem;
  line-height: 1.5;
}

.auth-journey-panel__trust i {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 105, 0, 0.16);
  color: #ffb27c;
}

.auth-journey-panel__trust strong {
  display: block;
  color: #fff;
  font-size: 0.76rem;
}

.auth-shell--journey .signup-shell-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.auth-shell--journey .auth-header {
  text-align: left;
}

.auth-shell--journey .auth-header::before {
  content: "Account setup";
}

.auth-shell--journey .auth-subtitle {
  margin-left: 0;
}

/* Responsive authentication layouts */
@media (max-width: 991.98px) {
  .auth-page {
    min-height: auto;
  }

  .auth-shell--journey {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-journey-panel {
    gap: 1.25rem;
    padding: 1.4rem;
  }

  .auth-journey-panel__intro p,
  .auth-journey-panel__trust {
    display: none;
  }

  .auth-journey-panel h1 {
    max-width: none;
    margin-bottom: 0;
    font-size: 1.55rem;
  }

  .signup-journey {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .signup-journey-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.55rem;
  }

  .signup-journey-step__number {
    width: 28px;
    height: 28px;
  }

  .signup-journey-step small {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .auth-page,
  .auth-page--compact {
    align-items: flex-start;
    padding: 1.5rem 0 3rem;
  }

  .auth-page::before {
    width: 220px;
    height: 220px;
    border-width: 36px;
  }

  .auth-page::after {
    display: none;
  }

  .auth-shell {
    border-radius: 9px;
  }

  .auth-panel-right,
  .login-clean .auth-panel-right,
  .auth-stack .auth-panel-right {
    padding: 1.4rem 1.1rem;
  }

  .signup-choice-grid--two,
  .signup-choice-grid--three,
  .student-social-grid {
    grid-template-columns: 1fr !important;
  }

  .auth-shell--journey .auth-panel-right {
    padding-top: 1.6rem;
  }
}

@media (max-width: 575.98px) {
  .auth-header {
    text-align: left;
  }

  .auth-subtitle {
    margin-left: 0;
  }

  .auth-journey-panel {
    padding: 1.1rem;
  }

  .auth-journey-panel__eyebrow {
    margin-bottom: 0.45rem;
  }

  .auth-journey-panel h1 {
    font-size: 1.3rem;
  }

  .signup-journey-step {
    display: flex;
    justify-content: center;
    padding: 0.45rem;
  }

  .signup-journey-step > span:last-child {
    display: none;
  }
}
