@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/DMSans-Variable.ttf") format("truetype-variations");
}

@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 100 1000;
  font-display: swap;
  src: url("/assets/fonts/DMSans-Italic-Variable.ttf") format("truetype-variations");
}

:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: #171717;
  background: #f4f4f5;
  font-synthesis: none;
  --brand-black: #090909;
  --brand-red: #d71920;
  --brand-red-dark: #a81117;
  --brand-red-soft: #fef2f2;
  --border: #d9d9dc;
  --muted: #737373;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f4f5;
  color: #171717;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: #b5141a;
  text-underline-offset: 3px;
}

.public-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: var(--brand-black);
  border-bottom: 1px solid #242424;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.public-brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.public-brand-wordmark {
  width: 116px;
  height: auto;
  object-fit: contain;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav a {
  color: #d4d4d4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.public-nav a:hover {
  color: #fff;
}

.auth-main {
  width: 100%;
  min-width: 0;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.login-container,
.register-container {
  width: min(430px, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand-red);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.09);
  text-align: left;
}

.auth-heading {
  margin-bottom: 24px;
}

.login-container h1,
.login-container h2,
.register-container h1,
.register-container h2 {
  margin: 0;
  color: #111;
  font-size: 27px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-heading p,
.deletion-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
  text-align: left;
}

.input-group label,
.field-label {
  display: block;
  margin-bottom: 6px;
  color: #404040;
  font-size: 13px;
  font-weight: 650;
}

.input-group input,
.confirmation-group input,
.register-container input,
.login-container input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #171717;
  font-size: 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.input-group input:focus,
.confirmation-group input:focus,
.register-container input:focus,
.login-container input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.password-group i {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: #737373;
  cursor: pointer;
}

.input-group label + input + i {
  top: 38px;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, opacity 120ms ease;
}

button:hover:not(:disabled) {
  background: var(--brand-red-dark);
}

button:disabled {
  background: #b5b5b5;
  cursor: not-allowed;
}

.login-container > button,
.register-container > button,
.auth-primary-button {
  width: 100%;
}

.google-login-wrap {
  width: 100%;
  min-height: 40px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  margin-top: 14px;
}

#googleSignInButton,
#googleSignInButton > div,
#googleSignInButton iframe {
  max-width: 100% !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: #e5e5e5;
  content: "";
}

.links {
  margin-top: 20px;
  color: #626262;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.links p {
  margin: 6px 0 0;
}

.links a {
  font-weight: 650;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

#output {
  min-height: 19px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.confirmation-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 15px;
}

.confirmation-group .send-code-btn,
.send-code-btn {
  min-width: 116px;
  padding: 0 13px;
  white-space: nowrap;
  font-size: 12px;
}

.validation-checklist {
  margin-top: 9px;
  color: #737373;
  font-size: 12px;
}

.validation-item {
  display: flex;
  align-items: center;
  margin: 4px 0;
}

.validation-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
}

.validation-icon.invalid {
  background: #c4c4c4;
}

.validation-icon.valid {
  background: #178547;
}

.countdown {
  color: var(--brand-red);
  font-size: 12px;
}

.deletion-warning {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid #f0b6b8;
  border-left: 4px solid var(--brand-red);
  border-radius: 5px;
  background: var(--brand-red-soft);
  color: #78171b;
  font-size: 14px;
  line-height: 1.45;
}

button.danger-button {
  width: 100%;
  background: var(--brand-red);
}

.public-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid #dfdfe1;
  background: #fff;
  color: #737373;
  font-size: 12px;
}

.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.public-footer a {
  color: #525252;
  font-weight: 600;
  text-decoration: none;
}

.public-footer a:hover {
  color: var(--brand-red);
}

@media (max-width: 600px) {
  .public-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .public-nav a:not(:last-child) {
    display: none;
  }

  .public-brand-wordmark {
    width: 102px;
  }

  .auth-main {
    display: block;
    padding: 24px 14px;
  }

  .login-container,
  .register-container {
    width: 100%;
    padding: 25px 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  }

  .confirmation-group {
    grid-template-columns: 1fr;
  }

  .confirmation-group .send-code-btn,
  .send-code-btn {
    width: 100%;
  }

  .public-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .public-footer nav {
    justify-content: flex-start;
  }

  .public-footer span,
  .public-footer a {
    overflow-wrap: anywhere;
  }
}
