/* Shared by the sign-in and registration pages. */
.tt-auth {
  --auth-ink: #30223e;
  --auth-muted: #65576f;
  --auth-accent: #663990;
  --auth-border: #e8dfee;
  --auth-focus: #74449c;
  padding: clamp(18px, 4vw, 48px) clamp(12px, 4vw, 24px) clamp(28px, 5vw, 52px);
  background: linear-gradient(155deg, #fff7fb, #f7f1fc);
  color: var(--auth-ink);
}

body:is(.login-page, .register-page) .site-footer { margin-top: 0; }

.tt-auth__card {
  width: min(100%, 440px);
  margin-inline: auto;
  padding: clamp(16px, 4.5vw, 28px);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px #4223530b;
}

.tt-auth-head { margin: 14px 0 18px; }

.tt-auth-head__title {
  margin: 0;
  color: var(--auth-ink);
  font-size: clamp(1.45rem, 4.8vw, 1.75rem);
  font-weight: 750;
  line-height: 1.35;
}

.tt-auth-switch {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-bottom: 1px solid var(--auth-border);
}

.tt-auth-switch > * {
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 44px;
  padding: 4px 6px;
  border-bottom: 2px solid transparent;
  color: var(--auth-muted);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}

.tt-auth-switch > [aria-current="page"] {
  border-bottom-color: var(--auth-accent);
  color: var(--auth-accent);
  font-weight: 750;
}

.tt-auth-switch a:hover { background: #faf5fc; }

.tt-auth .auth-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tt-auth .auth-form .flex-column:not(:first-child) { margin-top: 4px; }

.tt-auth .auth-form label {
  color: var(--auth-ink);
  font-size: .875rem;
  font-weight: 700;
}

.tt-auth .auth-label-required {
  margin-inline-start: .6em;
  color: var(--auth-muted);
  font-size: .6875rem;
  font-weight: 600;
}

.tt-auth .inputForm {
  display: flex;
  min-height: 46px;
  border: 1px solid #cabbd4;
  border-radius: 8px;
  background: #fff;
}

.tt-auth .inputForm .input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--auth-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  scroll-margin-block: 88px 20px;
}

.tt-auth .input::placeholder { color: #756781; }

.tt-auth .inputForm:focus-within {
  border-color: var(--auth-focus);
  outline: 2px solid var(--auth-focus);
  outline-offset: 1px;
}

.tt-auth .inputForm .input:focus { outline: none; }

.tt-auth :is(a, button):focus-visible {
  outline: 2px solid var(--auth-focus);
  outline-offset: 2px;
}

.tt-auth .inputForm.is-error { border-color: #a61b4a; }

.tt-auth .auth-error {
  margin: 0;
  padding: 6px 9px;
  border-inline-start: 2px solid #b24670;
  border-radius: 4px;
  background: #fff2f7;
  color: #721b3a;
  font-size: .8125rem;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.tt-auth .auth-error p { margin: 0; }
.tt-auth .tt-field-error-list { padding-inline-start: 25px; }

.tt-auth .tt-field-help,
.tt-auth .auth-form .p {
  margin: 0;
  color: var(--auth-muted);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.55;
}

.tt-auth .auth-form .button-submit,
.tt-auth .auth-form .oauth .google {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: .9375rem;
  font-weight: 700;
  text-align: center;
}

.tt-auth .auth-form .button-submit {
  margin-top: 9px;
  background: var(--auth-accent);
  color: #fff;
  cursor: pointer;
}

.tt-auth .auth-form .button-submit:hover { background: #542b7b; }

.tt-auth .auth-form .oauth .google {
  border-color: #d9cce2;
  background: #fff;
  color: var(--auth-ink);
  text-decoration: none;
}

.tt-auth .auth-form .oauth .google:hover { background: #faf6fc; }
.tt-auth .oauth svg { flex: 0 0 18px; height: 18px; }

.tt-auth .auth-form .line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.tt-auth .line::before,
.tt-auth .line::after {
  flex: 1;
  height: 1px;
  background: var(--auth-border);
  content: "";
}

.tt-auth .tt-status-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.tt-auth .tt-status-title--danger { color: #721b3a; }

.tt-auth :is(.tt-status-text, .tt-status-list) {
  margin-block: 0 10px;
  color: var(--auth-muted);
  font-size: .875rem;
  overflow-wrap: anywhere;
}

.tt-auth .tt-status-list { padding-inline-start: 1.3em; }

.tt-auth .tt-status-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--auth-accent);
  font-weight: 700;
  text-decoration: underline;
}
