/* Auth — login, register, recover-password (SaaSo-aligned theme) */

.auth-page {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  background: var(--ss-section-bg, #fffdf6);
  color: var(--ss-title, #0c222c);
  position: relative;
  overflow-x: hidden;
  font-family: var(--font-inter), system-ui, sans-serif;
}

.auth-page__home {
  position: absolute;
  top: 24px;
  left: 28px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ss-white, #fff);
  font-family: var(--font-plus-jakarta), sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s, opacity 0.2s;
}

.auth-page__home:hover {
  color: var(--ss-accent, #f57141);
}

.auth-page__home img,
.auth-page__home-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
}

.auth-split {
  margin: 0;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  align-items: stretch;
  min-height: 100vh;
}

/* Left panel — dark SaaSo hero */
.auth-hero {
  --auth-glass: rgba(255, 255, 255, 0.07);
  --auth-glass-border: rgba(255, 255, 255, 0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(88px, 12vh, 112px) clamp(28px, 4vw, 48px) clamp(40px, 6vh, 56px);
  color: var(--ss-white, #fff);
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background-color: var(--ss-title, #0c222c);
  isolation: isolate;
}

.auth-hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-hero__visual::before {
  content: '';
  position: absolute;
  inset: -8% -12% -8% -4%;
  background-image: url('/mockup.png');
  background-size: min(720px, 78%) auto;
  background-position: 92% 48%;
  background-repeat: no-repeat;
  opacity: 0.18;
  filter: blur(2px) saturate(0.4);
  -webkit-mask-image: radial-gradient(
    ellipse 72% 68% at 78% 50%,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 72% 68% at 78% 50%,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 72%
  );
}

.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(12.5% - 1px),
    rgba(236, 236, 236, 0.35) calc(12.5% - 1px),
    rgba(236, 236, 236, 0.35) 12.5%
  );
}

.auth-hero::after {
  display: none;
}

.auth-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.auth-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: auth-hero-orb-drift 28s ease-in-out infinite alternate;
}

.auth-hero__orb--mint {
  width: min(380px, 52vw);
  height: min(380px, 52vw);
  left: -18%;
  bottom: -22%;
  background: var(--ss-primary, #225e56);
}

.auth-hero__orb--sky {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  right: -10%;
  top: -14%;
  background: var(--ss-primary, #225e56);
  opacity: 0.4;
  animation-delay: -8s;
}

.auth-hero__orb--warm {
  width: min(180px, 28vw);
  height: min(180px, 28vw);
  left: 38%;
  top: 8%;
  background: var(--ss-accent, #f57141);
  opacity: 0.35;
  animation-delay: -14s;
}

@keyframes auth-hero-orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8px, -10px) scale(1.04);
  }
}

.auth-hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.1rem, 2.5vh, 1.6rem);
  flex: 1;
  max-width: 28rem;
  padding: clamp(24px, 3.5vw, 32px) clamp(22px, 3vw, 28px);
  border-radius: var(--ss-radius-md, 24px);
  background: var(--auth-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--auth-glass-border);
}

.auth-hero__main {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.auth-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 113, 65, 0.15);
  color: var(--ss-accent, #f57141);
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}

.auth-hero-title {
  margin: 0;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ss-white, #fff);
  max-width: 22ch;
}

.auth-hero-sub {
  margin: 28px 0 0;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.auth-check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-width: 40ch;
}

.auth-check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.auth-check-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--ss-accent, #f57141);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 113, 65, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(245, 113, 65, 0.25);
}

.auth-hero-disclaimer {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  max-width: 42ch;
}

.auth-form-column {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 10vh, 96px) clamp(24px, 4vw, 48px);
  background: var(--ss-section-bg, #fffdf6);
}

.auth-form-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  background: var(--ss-white, #fff);
  border: 1px solid var(--ss-line, #d9d8d8);
  border-radius: var(--ss-radius-lg, 32px);
  box-shadow: var(--ss-shadow, 0 13px 48px rgba(0, 0, 0, 0.1));
  padding: clamp(32px, 4vw, 40px) clamp(28px, 3.5vw, 36px);
}

.auth-form-head h1 {
  margin: 0;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-title, #0c222c);
}

.auth-form-lead {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ss-paragraph, #4a4a4a);
}

.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.auth-page .auth-form-body .label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ss-title, #0c222c);
}

.auth-form-body > div:first-of-type .label,
.auth-name-grid .label:first-of-type {
  margin-top: 0;
}

.auth-page .auth-form-body .input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ss-line, #d9d8d8);
  border-radius: 12px;
  background: var(--ss-secondary-02, #eff1f1);
  color: var(--ss-title, #0c222c);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-page .auth-form-body .input::placeholder {
  color: #9ca3af;
}

.auth-page .auth-form-body .input:hover {
  border-color: #c4c4c4;
  background: var(--ss-white, #fff);
}

.auth-page .auth-form-body .input:focus {
  outline: none;
  border-color: var(--ss-primary, #225e56);
  background: var(--ss-white, #fff);
  box-shadow: 0 0 0 3px rgba(34, 94, 86, 0.15);
}

.auth-field-hint {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ss-paragraph, #4a4a4a);
}

.auth-page .auth-req {
  color: var(--ss-accent, #f57141);
}

.auth-page .password-toggle:hover {
  color: var(--ss-primary, #225e56);
  background: rgba(34, 94, 86, 0.08);
}

.auth-btn-cta {
  margin-top: 24px;
  width: 100%;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 16px 20px;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
}

.auth-page .auth-btn-cta,
.auth-page .btn-primary.auth-btn-cta {
  background: var(--ss-accent, #f57141) !important;
  border: none !important;
  color: #fff !important;
}

.auth-page .auth-btn-cta:hover:not(:disabled),
.auth-page .btn-primary.auth-btn-cta:hover:not(:disabled) {
  background: var(--ss-primary, #225e56) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.auth-page .auth-btn-cta:disabled,
.auth-page .btn-primary.auth-btn-cta:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
}

.auth-page .btn-secondary.auth-btn-secondary-inline,
.auth-page .auth-btn-secondary-inline {
  margin-top: 12px;
  width: 100%;
  border-radius: 999px;
  padding: 14px 16px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--ss-line, #d9d8d8);
  color: var(--ss-title, #0c222c);
}

.auth-page .auth-btn-secondary-inline:hover:not(:disabled) {
  background: var(--ss-secondary-01, #f1f3f3);
}

.auth-google-btn {
  margin-top: 14px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ss-white, #fff);
  color: var(--ss-title, #0c222c);
  font-weight: 600;
  font-family: var(--font-plus-jakarta), sans-serif;
  border: 1px solid var(--ss-line, #d9d8d8);
  border-radius: 999px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-google-btn:hover:not(:disabled) {
  background: var(--ss-secondary-01, #f1f3f3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.auth-switch {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--ss-paragraph, #4a4a4a);
}

.auth-divider span {
  background: var(--ss-white, #fff);
  color: #9ca3af;
  font-size: 0.75rem;
}

.auth-inline-link {
  color: var(--ss-accent, #f57141);
  font-weight: 600;
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--ss-primary, #225e56);
}

.auth-recover-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ss-line, #d9d8d8);
}

.auth-recover-section h2 {
  margin: 0 0 8px;
  font-family: var(--font-plus-jakarta), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ss-title, #0c222c);
}

.auth-recover-section > p {
  margin: 0 0 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ss-paragraph, #4a4a4a);
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ss-paragraph, #4a4a4a);
  text-decoration: none;
}

.auth-back-link:hover {
  color: var(--ss-accent, #f57141);
}

.auth-page .auth-checkbox a.auth-inline-link {
  color: var(--ss-accent, #f57141);
}

.auth-page .auth-btn-spinner {
  border-top-color: #fff;
}

@media (max-width: 900px) {
  .auth-page__home {
    color: var(--ss-title, #0c222c);
  }

  .auth-page__home:hover {
    color: var(--ss-accent, #f57141);
  }

  .auth-hero {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: min(420px, 52vh);
    padding: 80px 20px 32px;
  }

  .auth-hero__visual::before {
    background-position: 50% 40%;
    opacity: 0.12;
  }

  .auth-hero__content {
    max-width: none;
  }

  .auth-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero-title {
    max-width: none;
    font-size: 1.5rem;
  }

  .auth-check-list {
    max-width: none;
  }

  .auth-form-column {
    padding: 32px 20px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hero__orb {
    animation: none;
  }
}
