/* ==========================================================
   Hello at Work — login gateway stylesheet
   Built by Hello Mental Health
   ----------------------------------------------------------
   Scoped via .haw-* class prefix so this file cannot bleed
   into the rest of the site's inline styles.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --haw-bg:        #FAF5EC;
  --haw-card-bg:   #FFFFFF;
  --haw-ink:       #1F2937;
  --haw-ink-soft:  #4B5563;
  --haw-ink-mute:  #6B7280;
  --haw-line:      #E5E7EB;
  --haw-line-soft: #F3F4F6;
  --haw-forest:    #2E5D4A;
  --haw-forest-d:  #214635;
  --haw-forest-l:  #3A7460;
  --haw-teal:      #4A9E87;       /* focus ring — Bailey-specified */
  --haw-coral:     #E28F6E;
  --haw-gold:      #D9A441;
  --haw-notice-bg: #F0F5EE;
  --haw-notice-ink:#2F4438;
  --haw-radius:    14px;
  --haw-shadow:    0 10px 30px rgba(46, 93, 74, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--haw-ink);
  background: var(--haw-bg);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Page shell with soft decorative blurs --- */
.haw-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 24px;
  position: relative;
  overflow: hidden;
}

.haw-shell::before,
.haw-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.haw-shell::before {
  top: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: var(--haw-coral);
  opacity: 0.22;
}

.haw-shell::after {
  bottom: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: var(--haw-gold);
  opacity: 0.26;
}

/* --- Card --- */
.haw-card {
  position: relative;
  z-index: 1;
  background: var(--haw-card-bg);
  border-radius: var(--haw-radius);
  padding: 40px 40px 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--haw-shadow);
}

@media (max-width: 480px) {
  .haw-card { padding: 30px 22px 24px; }
}

/* --- Brand header --- */
.haw-header {
  text-align: left;
  margin-bottom: 4px;
}

/* Two overlapping circles, intentional — signals connection */
.haw-mark {
  display: block;
  margin-bottom: 16px;
}

.haw-title {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--haw-forest);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.haw-subtitle {
  font-size: 0.86rem;
  color: var(--haw-ink-mute);
  margin: 0 0 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.haw-trust {
  font-size: 0.82rem;
  color: var(--haw-ink-mute);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

/* --- "What's inside" feature row --- */
.haw-features {
  list-style: none;
  padding: 18px 0;
  margin: 22px 0 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--haw-line-soft);
  border-bottom: 1px solid var(--haw-line-soft);
}

.haw-feature {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-width: 0;
}

.haw-feature-icon {
  color: var(--haw-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haw-feature-icon svg { display: block; }

.haw-feature-label {
  font-size: 0.74rem;
  color: var(--haw-ink-mute);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* --- Intro copy --- */
.haw-intro {
  font-size: 1rem;
  color: var(--haw-ink-soft);
  margin: 0 0 20px;
  line-height: 1.55;
}

/* --- Inline notice (also used for soft errors like
       "please enter a valid email"). Tone is friendly,
       not alarming — the unauthorized-domain message
       doubles as a sales touch, so the styling is
       intentionally calm and on-brand rather than red. --- */
.haw-error {
  background: var(--haw-notice-bg);
  border-left: 3px solid var(--haw-forest-l);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--haw-notice-ink);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.haw-error p {
  margin: 0;
}

.haw-error p + p {
  margin-top: 10px;
}

.haw-error strong {
  color: var(--haw-forest);
  font-weight: 600;
}

.haw-error a {
  color: var(--haw-forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.haw-error a:hover {
  color: var(--haw-forest-d);
}

.haw-error.is-hidden { display: none; }

/* --- Form --- */
.haw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px;
}

.haw-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--haw-ink-soft);
  margin-bottom: -4px;
  letter-spacing: 0.02em;
}

.haw-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--haw-line);
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 1rem;
  font-family: inherit;
  color: var(--haw-ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.haw-input::placeholder {
  color: var(--haw-ink-mute);
  opacity: 0.7;
}

/* Visible teal focus ring — #4A9E87 per spec */
.haw-input:focus {
  outline: none;
  border-color: var(--haw-teal);
  box-shadow: 0 0 0 3px rgba(74, 158, 135, 0.22);
}

.haw-input:disabled {
  background: var(--haw-line-soft);
  cursor: not-allowed;
}

/* --- Submit button — slight lighten + 2% scale up on hover --- */
.haw-button {
  width: 100%;
  background: var(--haw-forest);
  color: #FFFFFF;
  border: none;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  transform-origin: center;
}

.haw-button:hover {
  background: var(--haw-forest-l);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(46, 93, 74, 0.20);
}

.haw-button:active { transform: scale(0.99); }

.haw-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 158, 135, 0.32);
}

.haw-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Privacy micro-copy directly under Continue --- */
.haw-privacy-note {
  font-size: 0.74rem;
  color: var(--haw-ink-mute);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* --- Help text --- */
.haw-help {
  font-size: 0.86rem;
  color: var(--haw-ink-mute);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--haw-line-soft);
  line-height: 1.5;
}

.haw-help a {
  color: var(--haw-forest);
  font-weight: 600;
  text-decoration: none;
}

.haw-help a:hover { text-decoration: underline; }

/* --- Credential line, just above the footer --- */
.haw-credential {
  font-size: 0.78rem;
  color: var(--haw-ink-mute);
  text-align: center;
  margin: 18px 0 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* --- Footer (under card) --- */
.haw-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--haw-ink-mute);
  font-style: italic;
  text-align: center;
}
