.auth-shell {
  --auth-line: rgba(255, 255, 255, 0.085);
  --auth-muted: #8495aa;
}

.auth-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: min(100% - 2.5rem, 76rem);
  height: 5.5rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.7rem;
  padding: 0.6rem 0.75rem;
  color: #8495aa;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}

.auth-back-link svg {
  width: 1rem;
  height: 1rem;
}

.auth-back-link:hover,
.auth-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  outline: none;
}

.auth-main {
  display: grid;
  min-height: 100vh;
  align-items: center;
  padding: 7rem 1.25rem 2.5rem;
}

.auth-main-register {
  padding-block: 7rem 3rem;
}

.auth-layout {
  display: grid;
  width: min(100%, 72rem);
  margin-inline: auto;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
}

.auth-presentation {
  display: none;
}

.auth-presentation-content {
  max-width: 31rem;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(21, 152, 117, 0.23);
  border-radius: 999px;
  background: rgba(21, 152, 117, 0.09);
  padding: 0.5rem 0.75rem;
  color: #65d7b7;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.auth-presentation h1 {
  margin-top: 1.5rem;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.65rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.auth-presentation > .auth-presentation-content > p {
  margin-top: 1.3rem;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8rem;
}

.auth-feature-list {
  margin-top: 2rem;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  padding-block: 0.9rem;
}

.auth-feature-item > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(101, 215, 183, 0.14);
  border-radius: 0.7rem;
  background: rgba(21, 152, 117, 0.08);
  color: #65d7b7;
}

.auth-feature-item svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-feature-item strong {
  color: #dbe5e2;
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-feature-item p {
  margin-top: 0.18rem;
  color: #607286;
  font-size: 0.68rem;
}

.auth-form-column {
  width: 100%;
  max-width: 29rem;
  margin-inline: auto;
}

.auth-form-column-wide {
  max-width: 42rem;
}

.auth-card {
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 1.25rem;
  background: rgba(9, 20, 17, 0.86);
  padding: clamp(1.35rem, 5vw, 2rem);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.auth-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-security-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(101, 215, 183, 0.16);
  border-radius: 0.75rem;
  background: rgba(21, 152, 117, 0.1);
  color: #65d7b7;
}

.auth-security-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-security-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.35rem 0.6rem;
  color: #718297;
  font-size: 0.6rem;
  font-weight: 600;
}

.auth-security-label i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #43cda5;
  box-shadow: 0 0 0.6rem rgba(67, 205, 165, 0.5);
}

.auth-card-kicker {
  color: #65d7b7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-card-title {
  margin-top: 0.45rem;
  color: #fff;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.auth-card-copy {
  margin-top: 0.65rem;
  color: #7c8da2;
  font-size: 0.78rem;
  line-height: 1.45rem;
}

.auth-alert {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: 0.8rem;
  background: rgba(190, 18, 60, 0.09);
  padding: 0.8rem;
  color: #fecdd3;
  font-size: 0.7rem;
  line-height: 1.2rem;
}

.auth-alert > svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  margin-top: 0.05rem;
}

.auth-alert strong {
  font-weight: 600;
}

.auth-alert ul {
  margin-top: 0.2rem;
}

.auth-form {
  margin-top: 1.5rem;
}

.auth-field + .auth-field {
  margin-top: 1rem;
}

.auth-field label {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  display: grid;
  width: 1rem;
  height: 1rem;
  place-items: center;
  color: #536579;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 180ms ease;
}

.auth-input-icon svg {
  width: 1rem;
  height: 1rem;
}

.auth-input {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.75rem 0.9rem 0.75rem 2.7rem;
  color: #f8fafc;
  font-size: 0.78rem;
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.auth-input-password {
  padding-right: 3rem;
}

.auth-input::placeholder {
  color: #425367;
}

.auth-input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.auth-input:focus {
  border-color: rgba(101, 215, 183, 0.45);
  background: rgba(21, 152, 117, 0.035);
  box-shadow: 0 0 0 4px rgba(21, 152, 117, 0.09);
}

.auth-input[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.4);
}

.auth-input-wrap:focus-within .auth-input-icon {
  color: #65d7b7;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  color: #607286;
  transform: translateY(-50%);
  transition: background-color 180ms ease, color 180ms ease;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #dbe5e2;
  outline: none;
}

.auth-password-toggle svg {
  width: 1rem;
  height: 1rem;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #8495aa;
  font-size: 0.7rem;
  cursor: pointer;
}

.auth-checkbox input {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.3rem;
  accent-color: #159875;
}

.auth-submit {
  display: flex;
  width: 100%;
  min-height: 3.15rem;
  margin-top: 1.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #159875, #1bab83);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(21, 152, 117, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(21, 152, 117, 0.28);
  filter: brightness(1.05);
}

.auth-submit:focus-visible {
  outline: 2px solid #65d7b7;
  outline-offset: 3px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.auth-submit svg {
  width: 1rem;
  height: 1rem;
}

.auth-legal {
  margin-top: 0.9rem;
  color: #4e6074;
  font-size: 0.61rem;
  line-height: 1.1rem;
  text-align: center;
}

.auth-card-footer {
  display: flex;
  margin: 1.4rem -2rem -2rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-top: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.018);
  padding: 1rem;
  color: #64748b;
  font-size: 0.7rem;
}

.auth-card-footer a {
  color: #65d7b7;
  font-weight: 600;
  transition: color 180ms ease;
}

.auth-card-footer a:hover,
.auth-card-footer a:focus-visible {
  color: #8de7ce;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-fieldset + .auth-fieldset {
  margin-top: 1.25rem;
  border-top: 1px solid var(--auth-line);
  padding-top: 1.2rem;
}

.auth-fieldset legend {
  margin-bottom: 0.85rem;
  color: #718297;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-form-grid {
  display: grid;
  gap: 0.9rem;
}

.auth-form-grid .auth-field + .auth-field {
  margin-top: 0;
}

.auth-field-help {
  margin-top: 0.35rem;
  color: #536579;
  font-size: 0.62rem;
}

.auth-registration-steps {
  margin-top: 2rem;
}

.auth-registration-steps > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  padding-block: 0.9rem;
}

.auth-registration-steps span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border-radius: 0.6rem;
  background: rgba(21, 152, 117, 0.09);
  color: #65d7b7;
  font-size: 0.6rem;
  font-weight: 700;
}

.auth-registration-steps p {
  color: #718297;
  font-size: 0.72rem;
  line-height: 1.25rem;
}

.auth-registration-steps strong {
  color: #cbd5e1;
  font-weight: 600;
}

.auth-support-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem !important;
  border: 1px solid rgba(101, 215, 183, 0.12);
  border-radius: 0.8rem;
  background: rgba(21, 152, 117, 0.06);
  padding: 0.8rem;
  color: #7c9a91 !important;
  font-size: 0.68rem !important;
  line-height: 1.25rem !important;
}

.auth-support-note svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: #65d7b7;
}

@media (min-width: 640px) {
  .auth-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-field-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .auth-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 0.72fr);
  }

  .auth-layout-register {
    grid-template-columns: minmax(0, 0.72fr) minmax(38rem, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .auth-presentation {
    display: block;
  }
}

@media (max-width: 639px) {
  .auth-header {
    width: calc(100% - 2rem);
    height: 4.75rem;
  }

  .auth-main,
  .auth-main-register {
    padding: 5.8rem 1rem 1.5rem;
  }

  .auth-card-footer {
    flex-direction: column;
    margin-inline: -1.35rem;
    margin-bottom: -1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-submit,
  .auth-input,
  .auth-back-link {
    transition: none;
  }
}
