/* ==========================================================================
   ONSUS AUTH – sign-in / sign-up split layout
   Uses shop theme vars: --themeColorTwo, --themeColoeOne, --themeColorCta
   ========================================================================== */

.os-auth {
  --auth-ink: var(--os-ink, #1a1d23);
  --auth-muted: var(--os-muted, #6b7280);
  --auth-line: var(--os-line, #e8eaed);
  --auth-accent: var(--themeColorTwo, #e11d2e);
  --auth-cta: var(--themeColorCta, #ff4c1a);
  padding: 36px 0 72px;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, color-mix(in srgb, var(--auth-accent) 8%, transparent), transparent 55%),
    linear-gradient(180deg, #f3f4f6 0%, #ffffff 62%);
}

.os-auth__wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.os-auth__card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.08fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.1);
  animation: os-auth-enter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes os-auth-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.os-auth__media {
  position: relative;
  min-height: 520px;
  background: #111827;
  overflow: hidden;
}

.os-auth__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.os-auth__card:hover .os-auth__media img {
  transform: scale(1.06);
}

.os-auth__media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.12) 0%, rgba(17, 24, 39, 0.55) 100%),
    linear-gradient(135deg, color-mix(in srgb, var(--auth-accent) 42%, transparent) 0%, transparent 58%);
  pointer-events: none;
}

.os-auth__media-caption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}

.os-auth__media-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--auth-cta) 85%, #fff);
  margin-bottom: 8px;
}

.os-auth__media-caption h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.os-auth__media-caption p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.45;
  max-width: 28ch;
}

.os-auth__panel {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.os-auth__panel .sign_in_form {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.os-auth__panel .sign_in_form h3 {
  text-align: left;
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--auth-ink);
  margin-bottom: 8px;
}

.os-auth__lead {
  margin: 0 0 22px;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.45;
}

.os-auth__panel .sign_in_form .single_input {
  margin-top: 18px;
  border-color: #dfe3e8;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.os-auth__panel .sign_in_form .single_input:focus-within {
  border-color: color-mix(in srgb, var(--auth-accent) 55%, #dfe3e8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-accent) 14%, transparent);
}

.os-auth__panel .sign_in_form .single_input label {
  color: var(--auth-muted);
  font-weight: 500;
}

.os-auth__panel .sign_in_form .forgot {
  margin-top: 14px;
  justify-content: flex-end;
}

.os-auth__panel .sign_in_form .forgot a {
  color: var(--auth-accent);
  font-weight: 500;
  font-size: 14px;
}

.os-auth__panel .sign_in_form .forgot a:hover {
  color: color-mix(in srgb, var(--auth-accent) 80%, #000);
}

.os-auth__panel .sign_in_form form button.common_btn,
.os-auth__panel .sign_in_form form .common_btn {
  width: 100%;
  margin-top: 22px;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 600;
  background: var(--auth-cta);
  border: 1px solid var(--auth-cta);
  box-shadow: 0 8px 18px var(--themeColorCtaShadow, rgba(255, 76, 26, 0.28));
}

.os-auth__panel .sign_in_form form button.common_btn:hover,
.os-auth__panel .sign_in_form form .common_btn:hover {
  background: var(--themeColorCtaHover, #e63f10);
}

.os-auth__panel .sign_in_form form button.common_btn:after,
.os-auth__panel .sign_in_form form .common_btn:after {
  background: var(--themeColorCtaHover, #e63f10);
}

.os-auth__panel .sign_in_form .dont_account {
  text-align: left;
  margin-top: 22px;
  color: var(--auth-muted);
  font-size: 15px;
}

.os-auth__panel .sign_in_form .dont_account a {
  color: var(--auth-accent);
  font-weight: 600;
}

.os-auth__panel .sign_in_form .dont_account a:hover {
  color: color-mix(in srgb, var(--auth-accent) 78%, #000);
}

.os-auth__panel .alert {
  border-radius: 10px;
  margin-bottom: 4px;
}

.os-auth--signup .os-auth__panel {
  padding: 40px 44px;
}

.os-auth--signup .os-auth__panel .sign_in_form form button.common_btn {
  margin-top: 26px;
}

.os-auth .sign_in_img,
.os-auth.sign_in .sign_in_img,
.os-auth.sign_up .sign_in_img {
  width: auto;
  height: auto;
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 991.98px) {
  .os-auth {
    padding: 24px 0 56px;
  }

  .os-auth__card {
    grid-template-columns: 1fr;
  }

  .os-auth__media {
    min-height: 0;
    height: 168px;
  }

  .os-auth__media-caption {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

  .os-auth__media-caption h2 {
    font-size: 1.2rem;
  }

  .os-auth__media-caption p {
    display: none;
  }

  .os-auth__panel,
  .os-auth--signup .os-auth__panel {
    padding: 28px 22px 32px;
  }

  .os-auth__panel .sign_in_form h3 {
    text-align: left;
    font-size: 1.45rem;
  }

  .os-auth__card:hover .os-auth__media img {
    transform: scale(1.02);
  }
}

@media (max-width: 575.98px) {
  .os-auth__media {
    height: 132px;
  }

  .os-auth__media-kicker {
    font-size: 11px;
  }

  .os-auth__panel .sign_in_form .single_input {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-auth__card,
  .os-auth__media img {
    animation: none;
    transition: none;
  }

  .os-auth__card:hover .os-auth__media img {
    transform: none;
  }
}