:root {
  color-scheme: light;
  --ink: #121617;
  --muted: #5c676a;
  --line: #d7ddde;
  --steel: #252b2e;
  --green: #008454;
  --green-hover: #006c44;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f4f6f5;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.access-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
}

.access-intro {
  min-height: 100vh;
  padding: 48px clamp(40px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  color: white;
  background:
    linear-gradient(#121719e6, #121719e6),
    url("/assets/steel-workshop.jpg") center / cover;
}

.brand {
  width: fit-content;
  color: inherit;
  font-size: 30px;
  font-weight: 800;
  text-decoration: none;
}

.brand span,
.eyebrow {
  color: #42d59d;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
}

.access-intro div > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #d5dcda;
  font-size: 19px;
  line-height: 1.55;
}

.access-note {
  margin: 0;
  color: #b9c3c0;
  font-size: 14px;
}

.access-form-wrap {
  display: grid;
  place-items: center;
  padding: 48px;
}

.access-form {
  width: min(100%, 460px);
}

.mobile-brand {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.auth-tabs button.active {
  border-bottom-color: var(--green);
  color: var(--ink);
}

.form-heading {
  margin-bottom: 30px;
}

h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.form-heading p,
.invitation-note {
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #aeb8ba;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  font-size: 17px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d89119;
  outline-offset: 3px;
}

.message {
  min-height: 24px;
  margin: 0 0 14px;
  color: #a22b20;
  font-size: 14px;
  line-height: 1.5;
}

.message.success {
  color: #006c44;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.submit-button:hover {
  border-color: var(--green-hover);
  background: var(--green-hover);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.invitation-note {
  margin: 18px 0;
  font-size: 13px;
}

.back-link {
  color: var(--ink);
  font-size: 14px;
  text-underline-offset: 4px;
}

.hidden {
  display: none;
}

@media (max-width: 820px) {
  .access-shell {
    grid-template-columns: 1fr;
  }

  .access-intro {
    display: none;
  }

  .access-form-wrap {
    min-height: 100vh;
    padding: 32px 24px;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 42px;
    color: var(--steel);
  }
}

@media (max-width: 420px) {
  .access-form-wrap {
    align-items: start;
    padding: 24px 18px;
  }

  .mobile-brand,
  .auth-tabs {
    margin-bottom: 32px;
  }

  h2 {
    font-size: 28px;
  }
}
