/* ============================================================
   Archie Health auth pages
   Shared by login, signup, forgot-password and reset-password.
   Palette and type mirror css/home.css so the handoff from the
   marketing site to the account screens is seamless.
   ============================================================ */

:root {
  --ink: #15241c;
  --ink-mute: #6a7b72;
  --green: #1f6b4a;
  --green-deep: #143d2c;
  --cream: #fbf7f0;
  --hairline: #e7e0d4;
  --error: #ba3b2c;
  --error-bg: #faecea;
  --info-bg: #edf5f0;
  --font-text: 'Outfit', sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
}

.auth-nav {
  padding: 20px 24px;
}

.auth-nav img {
  height: 30px;
  width: auto;
  display: block;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 24px 64px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 18px 40px rgba(20, 61, 44, 0.06);
}

.auth-card__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}

.auth-card__intro {
  margin: 0 0 26px;
  color: var(--ink-mute);
  font-size: 15px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 107, 74, 0.14);
}

.auth-field__hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-mute);
}

.auth-submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 500px;
  background: var(--green-deep);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: progress;
}

.auth-linkbtn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.auth-meta {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
}

.auth-meta a {
  color: var(--green);
  font-weight: 600;
}

.auth-status {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  background: var(--error-bg);
  color: var(--error);
}

.auth-status[data-tone='info'] {
  background: var(--info-bg);
  color: var(--green-deep);
}

.auth-legal {
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-mute);
  text-align: center;
}

.auth-legal a {
  color: var(--ink-mute);
}

@media (max-width: 520px) {
  .auth-card {
    padding: 28px 20px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .auth-main {
    padding: 8px 0 48px;
  }
}
