/**
 * Sign in / create account.
 *
 * Split card: products on the left, one form on the right. The reference is the
 * myPOS merchant login — a single centred card that carries the brand rather
 * than two bare WooCommerce forms sitting on an empty page.
 */

.ats-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 220px);
  padding: 40px 16px 64px;
}

.ats-auth__card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: min(980px, 100%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ===============================================================
   Showcase panel — VIP Club promo
   =============================================================== */

.ats-auth__showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-2);
  border-right: 1px solid var(--color-border);
  overflow: hidden;
}

.ats-auth__banner {
  /* Source photo is square (500x500) — match its ratio so nothing is cropped. */
  aspect-ratio: 1 / 1;
  background-color: var(--color-surface-2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.ats-auth__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--color-surface-2) 92%, transparent) 100%);
}

.ats-auth__showcase-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 34px 34px;
  background:
    radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--color-brand-accent) 16%, transparent), transparent 55%),
    transparent;
  flex: 1;
}

.ats-auth__badge {
  align-self: flex-start;
  border: 1px solid color-mix(in srgb, var(--color-brand-accent) 30%, transparent);
  background: color-mix(in srgb, var(--color-brand-accent) 12%, transparent);
  border-radius: var(--radius-full);
  color: var(--color-brand-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  padding: 4px 12px;
  text-transform: uppercase;
}

.ats-auth__showcase-title {
  color: var(--color-title);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 18px;
}

.ats-auth__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.ats-auth__features li {
  position: relative;
  color: var(--color-text);
  font-size: var(--text-dense-small);
  line-height: 1.45;
  padding-left: 24px;
}

.ats-auth__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--color-brand-accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-brand-accent) 45%, transparent);
}

.ats-auth__features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6em;
  width: 4px;
  height: 7px;
  border-right: 2px solid var(--color-brand-accent);
  border-bottom: 2px solid var(--color-brand-accent);
  transform: rotate(45deg);
}

.ats-auth__showcase .ats-auth__showcase-cta,
.ats-auth__showcase .ats-auth__showcase-cta:link,
.ats-auth__showcase .ats-auth__showcase-cta:visited {
  align-self: flex-start;
  margin-top: auto;
  background: var(--color-brand);
  border-radius: var(--radius-md);
  color: var(--color-body);
  font-size: var(--text-dense-body);
  font-weight: 600;
  padding: 11px 22px;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.ats-auth__showcase .ats-auth__showcase-cta:hover {
  background: var(--color-brand-dark);
  box-shadow: var(--shadow-brand);
  color: var(--color-body);
}

/* ===============================================================
   Form panel
   =============================================================== */

.ats-auth__panel {
  padding: 40px 36px;
}

.ats-auth__title {
  color: var(--color-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 6px;
}

.ats-auth__intro {
  color: var(--color-text-muted);
  font-size: var(--text-dense-body);
  margin: 0 0 26px;
}

.ats-auth .woocommerce-form-row {
  margin-bottom: 16px;
}

.ats-auth label {
  display: block;
  color: var(--color-text);
  font-size: var(--text-dense-small);
  font-weight: 600;
  margin-bottom: 6px;
}

.ats-auth .required {
  color: var(--color-error);
  text-decoration: none;
}

.ats-auth input[type="text"],
.ats-auth input[type="email"],
.ats-auth input[type="password"] {
  width: 100%;
}

.ats-auth__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.ats-auth__actions label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  margin: 0;
}

.ats-auth__lost {
  color: var(--color-brand);
  font-size: var(--text-dense-small);
  white-space: nowrap;
}

.ats-auth__submit {
  width: 100%;
  padding: 12px 20px;
  font-size: var(--text-dense-body);
}

.ats-auth__hint {
  color: var(--color-text-muted);
  font-size: var(--text-dense-small);
  line-height: 1.5;
  margin: 0 0 18px;
}

.ats-auth__switch {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-dense-body);
  margin: 24px 0 0;
  padding-top: 18px;
  text-align: center;
}

.ats-auth__switch a {
  color: var(--color-brand);
  font-weight: 600;
}

/* Native checkbox is small and light-themed; make it match the surface. */
.ats-auth input[type="checkbox"] {
  accent-color: var(--color-brand);
  height: 15px;
  width: 15px;
  margin: 0;
}

/* ===============================================================
   Social login

   The plugin ships fixed brand colours and inline widths that look pasted on.
   These become equal-width outline buttons that keep each provider's mark.
   =============================================================== */

.ats-auth .wc-social-login {
  border-top: 1px solid var(--color-border);
  margin-top: 24px;
  padding-top: 20px;
}

.ats-auth .wc-social-login p {
  color: var(--color-text-muted);
  font-size: var(--text-dense-small);
  margin: 0 0 12px;
  text-align: center;
}

.ats-auth .wc-social-login a.button-social-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 10px 14px;
  background: var(--color-surface-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  color: var(--color-title) !important;
  font-size: var(--text-dense-body);
  font-weight: 600;
  text-shadow: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ats-auth .wc-social-login a.button-social-login:hover {
  background: var(--color-surface) !important;
  border-color: var(--color-brand) !important;
  color: var(--color-title) !important;
}

/* The plugin draws each icon as a full-colour brand SVG in a white box —
   fixed, not themeable from its own settings. Swap for a plain letter badge
   in the site's own palette instead of fighting five different brand colours. */
.ats-auth .wc-social-login a.button-social-login .si {
  background-image: none;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  font-size: 0;
}

.ats-auth .wc-social-login a.button-social-login .si::before {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-title);
}

.ats-auth .wc-social-login a.button-social-login .si-google::before {
  content: "G";
}

.ats-auth .wc-social-login a.button-social-login .si-facebook::before {
  content: "f";
}

.ats-auth .wc-social-login a.button-social-login .si-linkedin::before {
  content: "in";
  font-size: 0.5625rem;
}

/* ===============================================================
   Resend verification — tucked away, not a third form on the page
   =============================================================== */

.ats-auth__resend {
  border-top: 1px solid var(--color-border);
  margin-top: 20px;
  padding-top: 16px;
}

.ats-auth__resend > summary {
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: var(--text-dense-small);
  list-style: none;
}

.ats-auth__resend > summary::-webkit-details-marker {
  display: none;
}

.ats-auth__resend > summary::before {
  content: "+ ";
  color: var(--color-brand);
}

.ats-auth__resend[open] > summary::before {
  content: "– ";
}

.ats-auth__resend > summary:hover {
  color: var(--color-brand);
}

.ats-auth__resend .ums-resend {
  margin-top: 14px;
}

.ats-auth__resend .ums-resend__title {
  display: none;
}

.ats-auth__resend .ums-resend-form {
  background: none;
  border: none;
  padding: 0;
}

/* ===============================================================
   Notices sit inside the card, not adrift above it
   =============================================================== */

.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper {
  max-width: 980px;
  margin: 24px auto -16px;
  padding: 0 16px;
}

/* ===============================================================
   Responsive — the showcase moves above the form
   =============================================================== */

@media (max-width: 860px) {
  .ats-auth {
    min-height: 0;
    padding: 24px 12px 48px;
  }

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

  .ats-auth__showcase {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .ats-auth__showcase-body {
    padding: 22px 24px 28px;
  }

  .ats-auth__panel {
    padding: 28px 24px;
  }
}
