.auth-page {
  color: var(--register-ink);
}

.auth-form-panel {
  min-height: 100dvh;
  min-width: 0;
  background: var(--register-cream);
}

.auth-form-wrap {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1.25rem, 5vw, 5rem);
}

.auth-link:hover {
  color: var(--register-teal-dark);
}

.auth-form-card {
  width: min(100%, 34rem);
  margin-top: clamp(1rem, 3vh, 2.5rem);
}

.auth-eyebrow {
  margin: 0 0 .4rem;
  color: var(--register-teal-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-form-card h2 {
  margin: 0;
  color: var(--register-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.02;
}

.auth-form-description {
  max-width: 32rem;
  margin: .7rem 0 0;
  color: var(--register-muted);
  font-size: .98rem;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
}

.auth-field {
  display: grid;
  min-width: 0;
  gap: .4rem;
}

.auth-field label,
.auth-checkbox label {
  color: var(--register-ink);
  font-size: .86rem;
  font-weight: 850;
}

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

.auth-input-wrap > svg,
.auth-input-wrap > i {
  position: absolute;
  top: 50%;
  left: .95rem;
  width: 1.05rem;
  height: 1.05rem;
  color: #8293ad;
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--register-border);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .78);
  padding: .8rem 1rem .8rem 2.85rem;
  color: var(--register-ink);
  font: inherit;
  font-size: .94rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-input::placeholder {
  color: #91a0b8;
}

.auth-input:focus {
  border-color: var(--register-teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 143, 151, .16);
}

.auth-input[aria-invalid="true"] {
  border-color: var(--register-danger);
}

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

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: .65rem;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--register-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.auth-password-toggle:hover {
  background: #e8f5f3;
  color: var(--register-teal-dark);
}

.auth-password-toggle:focus-visible,
.auth-link:focus-visible,
.auth-checkbox input:focus-visible,
.auth-submit:focus-visible {
  outline: 3px solid rgba(13, 143, 151, .3);
  outline-offset: 3px;
}

.auth-help,
.auth-error {
  margin: 0;
  font-size: .78rem;
  line-height: 1.45;
}

.auth-help {
  color: var(--register-muted);
}

.auth-error {
  color: var(--register-danger);
  font-weight: 750;
}

.auth-checkbox {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: .65rem;
}

.auth-checkbox input {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  margin-top: .1rem;
  accent-color: var(--register-teal);
}

.auth-checkbox label {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
}

.auth-inline-row,
.auth-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-link-row {
  justify-content: center;
  color: var(--register-muted);
  font-size: .86rem;
}

.auth-link {
  color: var(--register-teal-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.auth-submit {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  border: 0;
  border-radius: .8rem;
  background: var(--register-teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
  font-weight: 850;
  box-shadow: 0 .7rem 1.6rem rgba(13, 143, 151, .2);
  transition: background-color 160ms ease, transform 160ms ease;
}

.auth-submit:hover {
  background: var(--register-teal-dark);
  transform: translateY(-1px);
}

.auth-alert,
.auth-security-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  border-radius: .8rem;
  padding: .8rem .9rem;
  font-size: .82rem;
  line-height: 1.45;
}

.auth-alert {
  border: 1px solid rgba(196, 66, 56, .25);
  background: #fff1ee;
  color: #9e342d;
  font-weight: 750;
}

.auth-security-note {
  background: #e8f5f3;
  color: var(--register-teal-dark);
}

.auth-alert svg,
.auth-security-note svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: .1rem;
}

.auth-legal {
  margin-top: 1.5rem;
  color: var(--register-muted);
  font-size: .75rem;
  text-align: center;
}

.auth-legal nav,
.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem 1.15rem;
}

.auth-legal a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
}

.auth-workspace-page {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(252, 191, 73, .18), transparent 28rem),
    var(--register-cream);
}

.auth-workspace-shell {
  width: min(100% - 2rem, 68rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 4rem) 0 2rem;
}

.auth-workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2rem, 7vh, 5rem);
}

.auth-workspace-nav img {
  width: clamp(8.5rem, 15vw, 11.5rem);
  height: auto;
}

.auth-workspace-logout {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--register-border);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .62);
  padding: .65rem .9rem;
  color: var(--register-muted);
  cursor: pointer;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
}

.auth-workspace-logout:hover {
  border-color: var(--register-teal);
  color: var(--register-teal-dark);
}

.auth-workspace-card {
  border: 1px solid rgba(16, 38, 74, .09);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .72);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: 0 1.25rem 3rem rgba(16, 38, 74, .08);
}

.auth-workspace-card h1 {
  margin: 0;
  color: var(--register-ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.auth-workspace-description {
  max-width: 42rem;
  margin: .7rem 0 0;
  color: var(--register-muted);
  line-height: 1.55;
}

.auth-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.auth-workspace-action {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: .75rem;
  padding: .7rem 1rem;
  color: var(--register-ink);
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}

.auth-workspace-action--primary {
  background: var(--register-teal);
  color: #fff;
  box-shadow: 0 .55rem 1.2rem rgba(13, 143, 151, .16);
}

.auth-workspace-action--secondary {
  border: 1px solid var(--register-border);
  background: #fff;
}

.auth-workspace-action:hover {
  border-color: var(--register-teal);
  background: var(--register-teal-dark);
  color: #fff;
}

.auth-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.auth-workspace-entry {
  display: block;
  min-width: 0;
  border: 1px solid var(--register-border);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, .8);
  padding: 1.15rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-workspace-entry:hover {
  border-color: var(--register-teal);
  box-shadow: 0 .8rem 1.8rem rgba(16, 38, 74, .08);
  transform: translateY(-1px);
}

.auth-workspace-entry__top,
.auth-workspace-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.auth-workspace-entry__top {
  align-items: flex-start;
}

.auth-workspace-entry__app,
.auth-workspace-entry__meta-label {
  color: var(--register-teal-dark);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.auth-workspace-entry h2 {
  margin: .4rem 0 0;
  overflow-wrap: anywhere;
  color: var(--register-ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.auth-workspace-entry__location,
.auth-workspace-entry__summary,
.auth-workspace-entry__description {
  color: var(--register-muted);
  line-height: 1.5;
}

.auth-workspace-entry__location {
  margin: .3rem 0 0;
  font-size: .82rem;
}

.auth-workspace-entry__summary {
  margin: 1rem 0 0;
  color: var(--register-ink);
  font-size: .88rem;
  font-weight: 750;
}

.auth-workspace-entry__description {
  margin: .35rem 0 0;
  font-size: .82rem;
}

.auth-workspace-entry__status,
.auth-workspace-entry__lifecycle {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .35rem .55rem;
  font-size: .65rem;
  font-weight: 850;
  text-align: right;
}

.auth-workspace-entry__status {
  background: #e8f5f3;
  color: var(--register-teal-dark);
}

.auth-workspace-entry__lifecycle {
  margin-top: .35rem;
  background: #fff1cf;
  color: #81540a;
}

.auth-workspace-entry__meta {
  margin-top: 1rem;
}

.auth-workspace-entry__meta > div {
  min-width: 0;
  border-radius: .75rem;
  background: #f5f9f8;
  padding: .7rem;
}

.auth-workspace-entry__meta-value {
  margin: .25rem 0 0;
  color: var(--register-ink);
  font-size: .8rem;
  font-weight: 850;
}

.auth-workspace-entry__cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1rem;
  color: var(--register-teal-dark);
  font-size: .84rem;
  font-weight: 850;
}

.auth-workspace-empty {
  margin-top: 2rem;
  border: 1px dashed var(--register-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .58);
  padding: 1rem;
  color: var(--register-muted);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .auth-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .auth-form-panel { min-height: 0; }

  .auth-form-wrap {
    min-height: 0;
    justify-content: flex-start;
    width: 100%;
    padding: 1.25rem 1rem 2rem;
  }

  .auth-form-card {
    width: 100%;
    margin-top: 0;
  }

  .auth-form-card h2 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .auth-form-description { margin-top: .45rem; font-size: .9rem; line-height: 1.4; }
  .auth-form { gap: .8rem; margin-top: 1.15rem; }
  .auth-input { min-height: 3rem; padding-top: .65rem; padding-bottom: .65rem; }
  .auth-submit { min-height: 3rem; }
}

@media (max-width: 600px) {
  .auth-inline-row {
    align-items: flex-start;
    flex-direction: column;
    gap: .65rem;
  }

  .auth-link-row {
    text-align: center;
  }
}

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

  .auth-submit:hover {
    transform: none;
  }
}
