/*
 * =========================================================
 * AUTH SHELL — split enterprise layout
 * Uses the same --brand-blue tokens as landing.css
 * =========================================================
 */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

/*
 * ---------------------------------------------------------
 * SIDE PANEL — brand pitch, dark enterprise blue
 * ---------------------------------------------------------
 */

.auth-side {
  position: relative;
  background: var(--navy-900);
  background-image: var(--brand-gradient);
  color: #fff;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-side-glow {
  position: absolute;
  top: -180px;
  right: -160px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.wordmark-light {
  color: #fff;
}

.wordmark-light .wordmark-mark {
  color: rgba(255, 255, 255, 0.85);
}

.auth-side-copy {
  margin-top: auto;
  padding-top: 64px;
  position: relative;
  z-index: 1;
}

.auth-side-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-side-copy h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.auth-side-copy > p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  max-width: 40ch;
}

.auth-side-features {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
}

.auth-side-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-side-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  margin-top: 1px;
}

.auth-side-check svg {
  width: 12px;
  height: 12px;
}

.auth-side-stats {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 28px;
}

.auth-side-stat {
  display: flex;
  flex-direction: column;
}

.auth-side-stat strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.auth-side-stat span {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.auth-side-foot {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

/*
 * ---------------------------------------------------------
 * FORM SIDE
 * ---------------------------------------------------------
 */

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  background: var(--bg, #fff);
}

.auth-card {
  width: 100%;
  max-width: 460px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.auth-back:hover {
  color: var(--brand-blue-dark);
}

.auth-back svg {
  width: 15px;
  height: 15px;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--navy-900);
}

.auth-card-sub {
  margin-top: 10px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
}

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input-wrap:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px var(--brand-blue-050);
}

.field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: var(--muted);
}

.field-icon svg {
  width: 17px;
  height: 17px;
}

.field-input-wrap:focus-within .field-icon {
  color: var(--brand-blue);
}

.field-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  padding: 12px 12px 12px 0;
  font-size: 0.94rem;
  color: var(--navy-900);
  min-width: 0;
}

.field-toggle {
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.field-toggle:hover {
  color: var(--brand-blue-dark);
}

.field-toggle svg {
  width: 17px;
  height: 17px;
}

.auth-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
}

.auth-checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--navy-800);
  cursor: pointer;
}

.auth-checkbox input {
  accent-color: var(--brand-blue);
  width: 15px;
  height: 15px;
}

.auth-forgot {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.auth-forgot:hover {
  text-decoration: underline;
}

.auth-submit {
  justify-content: center;
  width: 100%;
  padding: 13px 20px;
  margin-top: 6px;
  font-size: 0.96rem;
}

.auth-meta {
  margin-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-meta a {
  color: var(--brand-blue-dark);
  font-weight: 600;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: var(--radius-md, 10px);
  background: var(--brand-blue-050);
  color: var(--navy-800);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-note svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

/*
 * ---------------------------------------------------------
 * FORGOT PASSWORD — confirmation state
 * ---------------------------------------------------------
 */

.auth-confirm-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-blue-050);
  color: var(--brand-blue-dark);
  margin-bottom: 18px;
}

.auth-confirm-icon svg {
  width: 24px;
  height: 24px;
}

.auth-confirm-icon-warn {
  background: #fef2f2;
  color: #dc2626;
}

.auth-resend {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.auth-resend:disabled {
  opacity: 0.6;
  cursor: default;
}

/*
 * ---------------------------------------------------------
 * RESPONSIVE
 * ---------------------------------------------------------
 */

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-side {
    padding: 36px 32px;
  }
  .auth-side-copy {
    padding-top: 32px;
  }
  .auth-side-stats {
    margin-top: 32px;
  }
}

@media (max-width: 540px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .auth-main {
    padding: 40px 20px;
  }
}

/* =========================================================
   AUTH SKELETON
   ========================================================= */

.auth-skeleton {
    animation: authSkeletonIn 0.25s ease;
}

.skeleton-pulse {
    background: linear-gradient(
        90deg,
        rgba(148, 163, 184, 0.14) 25%,
        rgba(148, 163, 184, 0.28) 50%,
        rgba(148, 163, 184, 0.14) 75%
    );

    background-size: 200% 100%;

    animation: skeletonShimmer 1.35s ease-in-out infinite;
}


.auth-skeleton-side {
    padding: 42px;
}

.auth-skeleton-brand {
    width: 185px;
    height: 30px;
    border-radius: 7px;
}


.auth-skeleton-side-content {
    margin-top: 130px;
    max-width: 470px;
}

.auth-skeleton-eyebrow {
    width: 125px;
    height: 14px;
    border-radius: 5px;
}

.auth-skeleton-title {
    width: 82%;
    height: 42px;
    margin-top: 20px;
    border-radius: 8px;
}

.auth-skeleton-text {
    width: 94%;
    height: 15px;
    margin-top: 22px;
    border-radius: 5px;
}

.auth-skeleton-text-short {
    width: 72%;
    margin-top: 9px;
}


.auth-skeleton-features {
    margin-top: 35px;
    display: grid;
    gap: 18px;
}

.auth-skeleton-feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-skeleton-feature-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
}

.auth-skeleton-feature-line {
    width: 230px;
    height: 13px;
    border-radius: 5px;
}


/* =========================================================
   FORM SKELETON
   ========================================================= */

.auth-skeleton .auth-card {
    pointer-events: none;
}

.auth-skeleton-back {
    width: 70px;
    height: 16px;
    border-radius: 5px;
}

.auth-skeleton-heading {
    width: 135px;
    height: 35px;
    margin-top: 32px;
    border-radius: 7px;
}

.auth-skeleton-sub {
    width: 86%;
    height: 14px;
    margin-top: 15px;
    border-radius: 5px;
}


.auth-skeleton-field {
    margin-top: 26px;
}

.auth-skeleton-label {
    width: 110px;
    height: 13px;
    border-radius: 4px;
}

.auth-skeleton-input {
    width: 100%;
    height: 50px;
    margin-top: 9px;
    border-radius: 9px;
}


.auth-skeleton-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 21px;
}

.auth-skeleton-small {
    width: 90px;
    height: 13px;
    border-radius: 5px;
}

.auth-skeleton-small-right {
    width: 105px;
}


.auth-skeleton-button {
    width: 100%;
    height: 50px;
    margin-top: 28px;
    border-radius: 9px;
}

.auth-skeleton-meta {
    width: 210px;
    height: 13px;
    margin: 25px auto 0;
    border-radius: 5px;
}


/* =========================================================
   TRANSITIONS
   ========================================================= */

.auth-skeleton-exit {
    animation: authSkeletonOut 0.18s ease forwards;
}

.auth-page-enter {
    animation: authPageEnter 0.28s ease;
}


@keyframes skeletonShimmer {

    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }

}


@keyframes authSkeletonIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes authSkeletonOut {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }

}


@keyframes authPageEnter {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}