/* Authentication presentation. Request payloads, verification and redirects are unchanged. */
.marketing-auth {
  --error: #a13f37;
  --success: #38684a;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  padding-block: 64px 80px;
}
.auth-story {
  padding-top: 30px;
  max-width: 475px;
}
.auth-story h2 {
  font-size: 42px;
  margin-top: 24px;
  line-height: 1.2;
  letter-spacing: -1.7px;
}
.auth-story-description {
  color: var(--muted);
  font-size: 15px;
  max-width: 370px;
  margin-top: 22px;
  line-height: 1.8;
}
.auth-image {
  margin-top: 32px;
}
.auth-image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}
.auth-image figcaption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.auth-story .text-link {
  margin-top: 20px;
}
.auth-container {
  padding: 30px 0 10px 55px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.auth-card {
  max-width: 440px;
}
.auth-card h1 {
  font-size: 34px;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 18px 0 12px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.form-group input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cdd4d3;
  border-radius: var(--radius);
  background: var(--white);
  font: 14px/1.5 var(--font);
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-group input::placeholder {
  color: #7a8284;
  font-size: 12px;
}
.form-group input:hover {
  border-color: #9baeb8;
}
.form-group input:focus-visible,
.code-digit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
}
.signup-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.signup-fields .form-group:nth-child(3),
.signup-fields .form-group:nth-child(6) {
  grid-column: 1/-1;
}
.auth-btn {
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  font: 500 13px/1.5 var(--font);
  color: white;
  background: var(--blue);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-btn:hover {
  background: var(--blue-dark);
}
.auth-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.auth-error {
  font-size: 13px;
  line-height: 1.6;
  color: var(--error);
  margin-top: 14px;
}
.auth-error:empty {
  display: none;
}
.auth-link {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 24px;
}
.auth-link a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-block: 25px;
  font-size: 11px;
  color: var(--muted);
}
.auth-footer > div {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.auth-footer a {
  padding-block: 8px;
}
.verify-icon {
  color: var(--blue);
  margin-bottom: 24px;
}
.verify-email {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  margin: -16px 0 26px;
  overflow-wrap: anywhere;
}
.code-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.code-digit {
  width: calc((100% - 50px) / 6);
  min-width: 0;
  height: 54px;
  border: 1px solid #cdd4d3;
  border-radius: var(--radius);
  font: 500 24px/1 var(--font);
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: white;
  color: var(--ink);
  caret-color: var(--blue);
}
.code-digit.filled {
  border-color: var(--blue);
  background: var(--blue-tint);
}
.code-separator {
  width: 2px;
  flex: none;
}
.timer-bar {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  width: 100%;
  background: var(--blue);
  transition: width 1s linear;
}
.timer-fill.urgent {
  background: var(--error);
}
.timer-text {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 24px;
}
.timer-text.urgent {
  color: var(--error);
}
.timer-text strong {
  font-variant-numeric: tabular-nums;
}
.verify-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}
.resend-btn,
.back-btn {
  border: 0;
  background: transparent;
  font: 12px var(--font);
  color: var(--blue);
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}
.resend-btn:hover,
.back-btn:hover {
  text-decoration: underline;
}
.resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.separator {
  font-size: 10px;
  color: var(--muted);
}
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff66;
  border-top-color: white;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}
#step1.fade-out {
  opacity: 0;
  pointer-events: none;
}
#step1,
#step2 {
  transition: opacity 0.2s;
}
#step2.fade-in {
  opacity: 1;
}
@media (max-width: 1100px) {
  .auth-layout {
    gap: 50px;
  }
  .auth-container {
    padding-left: 35px;
  }
  .auth-story h2 {
    font-size: 35px;
  }
  .auth-card h1 {
    font-size: 30px;
  }
}
@media (max-width: 850px) {
  .auth-layout {
    gap: 30px;
  }
  .auth-story h2 {
    font-size: 30px;
  }
  .auth-container {
    padding-left: 25px;
  }
  .signup-fields {
    grid-template-columns: 1fr;
  }
  .signup-fields .form-group {
    grid-column: 1;
  }
  .auth-image img {
    height: 230px;
  }
  .auth-card h1 {
    font-size: 28px;
  }
  .code-input-group {
    gap: 5px;
  }
  .code-digit {
    width: calc((100% - 32px) / 6);
    height: 46px;
    font-size: 19px;
  }
}
@media (max-width: 600px) {
  .auth-layout {
    display: flex;
    flex-direction: column;
    padding-block: 34px 48px;
    gap: 28px;
  }
  .auth-story {
    padding-top: 0;
    max-width: none;
  }
  .auth-story h2 {
    font-size: 29px;
    margin-top: 15px;
  }
  .auth-story-description {
    font-size: 13px;
    margin-top: 14px;
  }
  .auth-story .auth-image,
  .auth-story .text-link {
    display: none;
  }
  .auth-container {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 28px 0 0;
    width: 100%;
  }
  .auth-card {
    max-width: none;
  }
  .auth-card h1 {
    font-size: 30px;
  }
  .subtitle {
    margin-bottom: 25px;
  }
  .form-group input {
    font-size: 16px;
  }
  .form-group {
    margin-bottom: 18px;
  }
  .auth-footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .auth-footer > div {
    gap: 20px;
  }
  .code-digit {
    height: 50px;
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
  #step1,
  #step2,
  .timer-fill {
    transition: none;
  }
}
