/* auth pages: sign up + log in */

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 26px 0 30px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.auth-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.auth-close:hover { color: var(--text); background: #1d2221; }
.auth-close svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.auth {
  min-height: calc(100vh - 74px);
  padding: 46px 20px 60px;
  background: var(--panel);
}
.auth--login { padding-top: 120px; }

.auth__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 44px;
}
.auth__title--login { margin-bottom: 38px; }

/* stepper */

.stepper {
  display: flex;
  align-items: center;
  width: 580px;
  max-width: 100%;
  margin: 0 auto 40px;
}
.stepper__step { display: flex; align-items: center; flex: 1; }
.stepper__step:last-child { flex: none; }
.stepper__step::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #2f3634;
}
.stepper__step:last-child::after { display: none; }

.stepper__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #4a5250;
  background: var(--panel);
  flex: none;
}
.stepper__step--active .stepper__dot { border-color: var(--green); border-width: 3px; }

/* form */

.auth__form { width: 580px; max-width: 100%; margin: 0 auto; }

.field { margin-bottom: 22px; }

.field__label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13.5px;
}

.input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #2b3130;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.input::placeholder { color: #7e8785; }
.input:hover { background: #313736; }
.input:focus { border-color: var(--green); }
.input--outline { border-color: #454c4a; }

.input--invalid { border-color: #ff6b6b; }

/* select */

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}
.select__arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.select select option { background: #2b3130; color: var(--text); }

/* date of birth */

.dob { display: flex; gap: 30px; }
.input--dd { width: 118px; }
.select--month { width: 238px; }
.input--yyyy { width: 158px; }

/* password */

.pw { position: relative; }
.pw .input { padding-right: 50px; }
.pw__eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.pw__eye:hover { color: var(--text); }
.pw__eye svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* errors */

.field__error,
.form__error {
  margin-top: 7px;
  color: #ff6b6b;
  font-size: 12.5px;
  min-height: 0;
}
.form__error { margin: 0 0 14px; text-align: center; font-size: 13.5px; }

/* cta */

.cta {
  width: 100%;
  height: 62px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--green);
  color: #07160a;
  font-size: 15px;
  font-weight: 700;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.cta:hover { filter: brightness(1.06); }
.cta:disabled { opacity: 0.6; cursor: progress; }
.cta--login { margin-top: 34px; height: 60px; }

/* footers */

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.auth__muted { color: var(--muted); font-size: 13.5px; }
.link { color: var(--green); font-size: 13.5px; }
.link:hover { text-decoration: underline; }

.auth__foot {
  width: 580px;
  max-width: 100%;
  margin: 300px auto 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.auth__foot a { color: var(--green); }
.auth__foot a:hover { text-decoration: underline; }

/* signed-in state in the main header */

.account {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 16px;
  border-radius: 999px;
  background: #222726;
  font-size: 14px;
  font-weight: 600;
}
.account__avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #07160a;
  font-size: 12px;
  font-weight: 700;
}
.account__logout {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
  transition: color 0.15s ease;
}
.account__logout:hover { color: var(--text); }

@media (max-width: 700px) {
  .auth__title { font-size: 34px; }
  .auth--login { padding-top: 60px; }
  .dob { gap: 12px; }
  .input--dd, .select--month, .input--yyyy { width: auto; flex: 1; }
  .auth__foot { margin-top: 80px; }
}
