/* Shared auth page shell — ported from the Product Studio signup layout. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family:
    "Roboto",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #0f172a;
  background: #010006;
}

ul.errorlist {
  margin: 0;
  list-style-type: none;
  padding: 0;
}

a {
  color: #0ea5e9;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.auth-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  background: linear-gradient(
    37.4deg,
    rgb(1, 0, 6) 35.4%,
    rgb(38, 89, 229) 81.4%,
    rgb(26, 178, 229) 96.2%
  );
}

.auth-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.auth-left-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  padding: clamp(3.5rem, 12vh, 7rem) clamp(1.5rem, 3vw, 2rem) 2.5rem;
}

.auth-left-copy {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.5vh, 1.25rem);
}

.auth-title {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5.5vw, 4.675rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: left;
  text-transform: uppercase;
}

.auth-description {
  display: block;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(1.125rem, 2.1vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.auth-right-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 1.5rem;
  background: #fff;
}

.auth-curve {
  display: none;
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 28rem;
  flex-direction: column;
}

.auth-heading {
  margin: 0 0 1.25rem;
  color: #0f172a;
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.auth-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.auth-field label {
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  height: 2.25rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-field input[type="email"]:focus,
.auth-field input[type="password"]:focus,
.auth-field input[type="text"]:focus {
  border-color: #22c55e;
  outline: 2px solid #dcfce7;
}

.auth-field input.invalid,
.auth-field input.error {
  border-color: #dc2626;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: #334155;
  font-size: 0.875rem;
}

.auth-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #7c3aed;
}

.auth-checkbox label {
  margin: 0;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.auth-checkbox a,
.auth-checkbox a:visited {
  color: #0ea5e9;
  font-size: inherit;
}

.auth-error,
.hs-error-msg {
  color: #dc2626;
  font-size: 0.875rem;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-button,
.auth-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2.75rem;
  padding: 0 1rem;
  border: none;
  border-radius: 0.25rem;
  background: #7c3aed;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.auth-button:hover,
.auth-button:focus {
  background: #6d28d9;
  color: #fff;
  text-decoration: none;
}

.auth-button--secondary,
.auth-button--secondary:visited {
  background: #fff;
  border: 1px solid #94a3b8;
  color: #334155;
}

.auth-button--secondary:hover,
.auth-button--secondary:focus {
  background: #fff;
  border-color: #475569;
  color: #334155;
}

.auth-forgot {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
}

.auth-support {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.auth-support-text {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.auth-divider {
  margin: 0.5rem 0 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.auth-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.auth-legal a,
.auth-legal a:visited {
  color: #0ea5e9;
}

.auth-legal-sep {
  color: #94a3b8;
}

.auth-footer {
  position: relative;
  z-index: 20;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 2rem;
  background: #010006;
  color: #fff;
}

.auth-footer-logo {
  display: block;
  width: auto;
  height: 1.75rem;
}

.auth-footer-copy {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .auth-footer {
    padding: 0 3rem;
  }

  .auth-footer-logo {
    height: 2rem;
  }

  .auth-footer-copy {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .auth-body {
    flex-direction: row;
    overflow: hidden;
  }

  .auth-left-panel {
    padding: 0 clamp(2.5rem, 8vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  }

  .auth-left-copy {
    max-width: min(100%, calc(42vw - 2.5rem));
  }

  .auth-right-panel {
    flex: none;
    width: 42%;
    min-width: 22rem;
    padding: 2rem 3rem;
    background: transparent;
  }

  .auth-curve {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    width: min(140vh, 200%);
    height: min(140vh, 200%);
    border-radius: 50%;
    background: #fff;
    box-shadow:
      -10px 0 36px rgb(255 196 120 / 0.35),
      -2px 0 12px rgb(255 220 170 / 0.45);
    transform: translate(-15%, -50%);
    pointer-events: none;
  }
}

@media (min-width: 2400px) {
  .auth-left-panel {
    padding-left: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hero-video {
    display: none;
  }
}
