/* Sign in, sign up, invitations, the clubs list and the account page. */

.setup-card {
  padding: 27px;
}

.setup-card>strong {
  font-size: 12px;
  font-weight: 500;
}

.setup-card {
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  color: #26436e;
  border-color: #dce4f2;
  border-radius: 6px;
}

.setup-card p {
  font-size: 12px;
  margin-bottom: 26px;
  color: #7f93b2;
}

.setup-icon {
  display: inline-flex;
  padding: 10px;
  margin-bottom: 20px;
  color: var(--blue);
  background: #edf2ff;
  border-radius: 5px;
}

.setup-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.invitation {
  padding: 18px 0;
  border-bottom: 1px solid #e0e5ef;
}

.invitation strong {
  font-size: 12px;
  margin-right: 10px;
}

.invitation p {
  font-size: 10px;
  color: #8194b3;
  margin: 10px 0;
}

.invitation input {
  font-size: 10px;
  margin: 6px 0 10px;
}

.auth-layout {
  max-width: 1300px;
  padding: 40px 6vw;
  margin: auto;
}

.auth-card {
  background: white;
  border: 1px solid #dfe6f3;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 10px 40px #213f7c08;
}

.auth-card>p {
  font-size: 12px;
  color: #8092b0;
  line-height: 1.7;
  margin: 15px 0 25px;
}

.auth-card form>label {
  margin: 20px 0 8px;
}

.auth-card input {
  font-size: 14px;
}

.auth-card .btn {
  margin-top: 24px;
  padding: 14px;
}

.auth-card.centered {
  max-width: 470px;
  margin: 60px auto;
}

.auth-card.centered h1 {
  font-size: 30px;
}

.auth-card.centered>.text-btn {
  margin-top: 24px;
}

/* Account page: one card per topic, stacked in a narrow column. */
.account-page {
  display: grid;
  gap: 18px;
  max-width: 560px;
  margin: 30px auto 60px;
}

.account-page>.text-btn {
  justify-self: start;
}

.account-head h1 {
  margin-top: 8px;
  font-size: 30px;
  overflow-wrap: anywhere;
}

.account-section h2 {
  margin: 0;
  font-size: 18px;
}

.account-section select {
  width: 100%;
}

.account-field {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-field span {
  color: #5c7195;
  font-size: 11px;
}

.account-section .helper {
  margin-top: 10px;
}

.account-section .btn {
  margin-top: 20px;
}

.onboarding-head {
  margin: 65px 0 35px;
}

.onboarding-head h1 {
  font-size: 48px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -1.5px;
}

.onboarding-head p {
  font-size: 13px;
  color: #8092b0;
  margin-top: 20px;
}

.club-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin: 25px 0 40px;
}

.new-club {
  border-style: dashed;
  background: transparent;
}

.auth-layout .toast {
  left: 50%;
}

@media (max-width: 960px) {
  .auth-layout {
    padding: 30px;
  }

  .auth-card {
    padding: 25px;
  }

  .club-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 700px) {
  .setup-card {
    padding: 24px;
  }

  .auth-layout {
    padding: 25px 22px;
  }

  .auth-card {
    padding: 24px;
  }

  .club-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-head h1 {
    font-size: 38px;
  }

  .auth-card.centered {
    margin: 40px auto;
  }

  .auth-layout .toast {
    left: 50%;
  }
}

/* Signed-out pages and the invitation page (layouts/auth): a split screen.
   Left, the homepage's navy hero with one headline; right, the form on white,
   centred, with a footer. On phones the navy panel becomes a short band on top.
   Text colours stay at WCAG AA or better: #53607a is 6.3:1 on white, the
   #8792a8 input border 3.1:1. */

.auth-split {
  background: #fff;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(0, 11fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 40px clamp(32px, 5vw, 72px) 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgb(54 87 212 / 55%), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--blue-deep) 100%);
  color: #fff;
}

.auth-panel .brand {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 24px;
}

.auth-panel .brandmark {
  width: 33px;
  height: 35px;
}

/* The homepage's pitch markings, faint, as texture behind the headline. */
.auth-pitch {
  position: absolute;
  top: 50%;
  right: -22%;
  height: 118%;
  aspect-ratio: 704 / 1102;
  color: rgb(255 255 255 / 9%);
  transform: translateY(-50%) rotate(-8deg);
  pointer-events: none;
}

.auth-panel-copy {
  position: relative;
  z-index: 1;
}

.auth-headline {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(40px, 4.6vw, 88px);
  font-style: italic;
  line-height: .9;
  letter-spacing: -1px;
}

.auth-headline span {
  color: var(--yellow);
}

.auth-intro {
  max-width: 440px;
  color: #b9c6e8;
  font-size: 17px;
  line-height: 1.6;
}

.auth-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
  padding: 56px 24px;
}

.auth-split .auth-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.auth-split .auth-card h1 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.8px;
  overflow-wrap: anywhere;
}

.auth-split .auth-card > p,
.auth-split .helper {
  margin: 0;
  color: #53607a;
  font-size: 15px;
  line-height: 1.6;
}

.auth-split .auth-card form {
  margin-top: 28px;
}

.auth-split .auth-card form > label {
  margin: 20px 0 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.auth-split .auth-card form > label:first-of-type {
  margin-top: 0;
}

/* 16px text keeps phones from zooming in on focus. */
.auth-split :is(input:not([type=checkbox], [type=submit]), select, textarea) {
  min-height: 48px;
  padding: 12px 14px;
  border-color: #8792a8;
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
}

/* A lighter focus ring than the app's: thin, blue, a little apart. */
.auth-split :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Blue would fade into the navy panel (2.8:1); yellow stands out. */
.auth-split .auth-panel :focus-visible {
  outline-color: var(--yellow);
}

/* On inputs the ring sits on the border, so it reads as a 2px blue border. */
.auth-split :is(input:not([type=checkbox], [type=submit]), select, textarea):focus-visible {
  outline-offset: -1px;
}

.auth-split textarea {
  width: 100%;
  font: inherit;
  resize: vertical;
}

.auth-split .auth-card form > .checkbox {
  align-items: flex-start;
  margin: 24px 0 8px;
  font-weight: 500;
  line-height: 1.5;
}

.auth-split .checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.auth-split .auth-card form > small {
  display: block;
  color: #53607a;
  font-size: 13px;
  line-height: 1.6;
}

.auth-split .auth-card .btn {
  margin-top: 28px;
  padding: 15px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
}

.auth-links a,
.auth-split .auth-card > .text-btn {
  color: var(--blue);
  text-underline-offset: 3px;
}

.auth-links a:hover,
.auth-split .auth-card > .text-btn:hover {
  text-decoration: underline;
}

.auth-split .auth-card > .text-btn {
  margin-top: 24px;
  font-size: 14px;
}

.auth-split .error {
  color: #8f4127;
  font-size: 14px;
}

/* Notices float over the form column, not the middle of the page. */
.auth-split .toast {
  left: 72.5%;
}

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 20px clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: #53607a;
  font-size: 13px;
}

.auth-footer .locale-picker {
  color: #3d4a66;
}

/* At the bottom of the page the language menu opens upward. */
.auth-footer .locale-list {
  top: auto;
  bottom: calc(100% + 6px);
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .auth-panel {
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 24px 28px;
  }

  .auth-pitch {
    right: -12%;
    height: 280%;
  }

  .auth-headline {
    margin: 0;
    font-size: clamp(28px, 6.5vw, 48px);
  }

  .auth-intro {
    display: none;
  }

  .auth-main {
    padding: 48px 24px;
  }

  .auth-split .toast {
    left: 50%;
  }
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 16px 16px 22px;
  }

  .auth-panel .brand {
    font-size: 20px;
  }

  .auth-panel .brandmark {
    width: 28px;
    height: 30px;
  }

  .auth-main {
    justify-content: flex-start;
    padding: 28px 16px 40px;
  }

  .auth-split .auth-card h1 {
    font-size: 28px;
  }

  .auth-footer {
    padding: 16px;
  }
}

/* Invitation: who invited you, the invited email, then the one form that gets you in. */
.auth-split .auth-card > .invitation-lead {
  color: var(--ink);
}

.invitation-email {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.invitation-email span {
  color: var(--muted);
  font-size: 12px;
}

.auth-split .invitation-card .helper {
  margin-top: 20px;
}

.auth-split .auth-links + .helper,
.auth-split .auth-card form + .helper {
  margin-top: 16px;
  font-size: 13px;
}
