/* Split-panel auth gate. Tokens and controls come from styles.css / app.css. */

.auth-body--gate {
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: var(--accent-lighter);
}

.auth-gate-shell {
  width: min(1120px, 100%);
}

.auth-gate {
  --auth-gate-curve: 7.5rem;
  --auth-gate-swap: 460ms ease-in-out;
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: min(40rem, calc(100vh - 3rem));
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.auth-gate-visual,
.auth-gate-form {
  position: relative;
  z-index: 1;
  flex: 0 0 50%;
  min-width: 0;
  transition: transform var(--auth-gate-swap);
}

.auth-gate-visual {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 2rem 1.5rem;
  color: var(--white);
  background: #316cf6;
  border-radius: 0 var(--auth-gate-curve) var(--auth-gate-curve) 0;
  transition:
    transform var(--auth-gate-swap),
    border-radius var(--auth-gate-swap);
}

.auth-gate[data-role='employer'] .auth-gate-visual {
  transform: translateX(100%);
  border-radius: var(--auth-gate-curve) 0 0 var(--auth-gate-curve);
}

.auth-gate[data-role='employer'] .auth-gate-form {
  transform: translateX(-100%);
}

.auth-gate-visual-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-gate-art {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 4 / 3;
  margin: 0 0 0.15rem;
}

.auth-gate-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--auth-gate-swap);
  pointer-events: none;
}

.auth-gate[data-role='candidate'] .auth-gate-art img[data-art='candidate'],
.auth-gate[data-role='employer'] .auth-gate-art img[data-art='employer'] {
  opacity: 1;
}

.auth-gate-copy {
  width: min(100%, 20rem);
  text-align: center;
}

.auth-gate-copy[hidden] {
  display: none;
}

.auth-gate-title {
  margin: 0 0 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.auth-gate-switch.btn.inverse {
  width: auto;
  min-width: 0;
  min-height: 2.15rem;
  padding: 0.35rem 1.05rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.auth-gate-switch.btn.inverse:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.auth-gate-switch.btn.inverse:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  box-shadow: none;
}

.auth-gate-visual-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.auth-gate-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.auth-gate-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.auth-gate-socials a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.auth-gate-socials a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.auth-gate-socials i,
.auth-gate-socials .social-x-icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 1.5;
}

.auth-gate-copyrights {
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.auth-gate-form {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--white);
  padding: 2.25rem 2.75rem;
}

.auth-gate-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 1.75rem;
}

.auth-gate-brand .brand-lockup-img {
  height: 2.15rem;
  width: auto;
}

.auth-gate-panes {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.auth-gate-role,
.auth-gate-mode {
  min-height: 0;
}

.auth-gate-role[hidden],
.auth-gate-mode[hidden] {
  display: none;
}

.auth-gate-mode {
  display: flex;
  flex-direction: column;
  max-width: 24.5rem;
  width: 100%;
  margin: 0 auto;
}

.auth-gate-form .auth-role {
  align-self: flex-start;
  margin-bottom: 0.65rem;
}

.auth-gate[data-mode='signup'] {
  max-height: none;
}

.auth-gate-form .btn.primary {
  background-color: var(--accent);
  background-image: none;
  box-shadow: none;
}

.auth-gate-form .btn.primary:hover {
  background-color: var(--accent-dark);
  background-image: none;
  box-shadow: none;
  transform: none;
}

.auth-gate-form h1 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.auth-gate-form .auth-lede {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.auth-gate-form .input-group {
  margin-bottom: 1rem;
}

.auth-gate-form .input-group > label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.45rem;
}

.auth-gate-form .input-group input {
  min-height: 2.85rem;
}

.auth-gate-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 1.15rem;
}

.auth-gate-row a {
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-gate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}

.auth-gate-actions .auth-footer {
  margin: 0;
  text-align: left;
}

.auth-gate-actions .auth-submit {
  width: auto;
  min-width: 8.5rem;
  margin-top: 0;
  border-radius: var(--radius-full);
}

.auth-gate-form .auth-agree {
  margin-top: 1rem;
}

.auth-gate-signup .auth-submit {
  width: 100%;
  margin-top: 0.15rem;
}

.auth-gate-signup .auth-footer {
  text-align: center;
}

.auth-gate-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}

.auth-gate-home {
  margin: 0;
}

.auth-gate-home a,
.auth-gate-meta .auth-legal a {
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 600;
}

.auth-gate-home a:hover,
.auth-gate-meta .auth-legal a:hover {
  color: var(--accent-dark);
}

.auth-gate-meta .auth-legal {
  margin: 0;
}

@media (max-width: 899px) {
  .auth-body--gate {
    align-items: flex-start;
    padding: 16px var(--sk-gutter, 16px) 28px;
  }

  .auth-gate {
    --auth-gate-curve: 2.75rem;
    flex-direction: column;
    min-height: 0;
    max-height: none;
  }

  .auth-gate-visual,
  .auth-gate-form,
  .auth-gate[data-role='employer'] .auth-gate-visual,
  .auth-gate[data-role='employer'] .auth-gate-form {
    flex-basis: auto;
    width: 100%;
    transform: none;
  }

  .auth-gate-visual {
    padding: 1.35rem 1.25rem 1.15rem;
    border-radius: 0 0 var(--auth-gate-curve) var(--auth-gate-curve);
  }

  .auth-gate[data-role='employer'] .auth-gate-visual {
    border-radius: 0 0 var(--auth-gate-curve) var(--auth-gate-curve);
  }

  .auth-gate-visual-main {
    flex: 0 0 auto;
    padding-top: 0.25rem;
  }

  .auth-gate-art {
    width: min(100%, 18rem);
    margin: 0 0 0.15rem;
  }

  .auth-gate-title {
    font-size: 0.88rem;
    margin-bottom: 0.6rem;
  }

  .auth-gate-switch.btn.inverse {
    min-height: 40px;
    min-width: 0;
    width: auto;
    padding: 0.45rem 1.15rem;
  }

  .auth-gate-visual-foot {
    margin-top: 1rem;
  }

  .auth-gate-form {
    padding: 1.35rem var(--sk-gutter, 16px) 1.5rem;
  }

  .auth-gate-brand {
    margin-bottom: 1.15rem;
  }

  .auth-gate-form h1 {
    font-size: 1.4rem;
  }

  .auth-gate-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .auth-gate-actions .auth-footer {
    text-align: center;
  }

  .auth-gate-actions .auth-submit {
    width: 100%;
    min-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-gate-visual,
  .auth-gate-form,
  .auth-gate-art img {
    transition: none;
  }
}
