/* ACARiS Login: /login/ (chooser + product sign-in card).
   Design: https://claude.ai/artifact/ApFNZ5KQLju4zXs6mVeRJs */

@font-face { font-family: 'Metropolis'; src: url('fonts/Metropolis-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('fonts/Metropolis-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('fonts/Metropolis-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Metropolis'; src: url('fonts/Metropolis-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --al-navy: #2A2A82;
  --al-ink: #17183F;
  --al-muted: #5B5F7A;
  --al-line: #E2E4EE;
  --al-field: #8A8FA8;
  --al-ground: #F4F5F9;
  --al-white: #FFFFFF;
}

/* Product colours. On <body> for the page's product, and again on the
   switch card / chooser cards for theirs. */
.al-p-horse {
  --al-accent: #AECB37; --al-accent-hover: #9DB92C; --al-on-accent: #17183F;
  --al-text: #4E6410; --al-text-hover: #2F3C08;
  --al-tint: #F3F7E1; --al-tint-line: #DCE6B0;
}
.al-p-cow {
  --al-accent: #0D27D3; --al-accent-hover: #0A1FAA; --al-on-accent: #FFFFFF;
  --al-text: #0D27D3; --al-text-hover: #081A94;
  --al-tint: #EBEEFF; --al-tint-line: #C9D1FB;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.al {
  min-height: 100vh;
  background: var(--al-ground);
  color: var(--al-ink);
  font: 400 16px/1.5 'Metropolis', 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.al a { color: var(--al-text, var(--al-navy)); }
.al a:hover { color: var(--al-text-hover, var(--al-ink)); }
.al a:focus-visible, .al input:focus-visible, .al button:focus-visible {
  outline: 3px solid var(--al-text, var(--al-navy));
  outline-offset: 2px;
}
.al h1 { margin: 0; font-weight: 700; color: var(--al-ink); }

/* ── shared bits ─────────────────────────────────────────────────── */

.al-home { display: inline-flex; align-items: center; min-height: 44px; }
.al-logo { display: block; height: 36px; width: auto; }
.al-logo--cow { height: 52px; }

.al-lang { display: flex; gap: 4px; padding: 4px; background: var(--al-ground); border-radius: 999px; }
.al--card .al-lang { background: var(--al-white); border: 1px solid var(--al-line); }
.al-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 36px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--al-muted); text-decoration: none;
}
.al-lang a:hover { color: var(--al-ink); }
.al-lang a[aria-current="true"] { background: var(--al-navy); color: var(--al-white); }

.al-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--al-text, var(--al-navy)); }

.al-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--al-white);
  border: 1px solid var(--al-tint-line, var(--al-line)); border-radius: 12px;
  color: var(--al-text, var(--al-navy));
}
.al-banner svg { flex: none; margin-top: 1px; }
.al-banner p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--al-ink); }
.al-banner span { color: var(--al-muted); }
.al-banner--expired { border-color: #F1D9A6; color: #8A5A00; }

.al-error {
  padding: 14px 16px; border-radius: 12px;
  background: #FDECEC; border: 1px solid #F3B9B9; color: #8F1D1D;
  font-size: 15px; font-weight: 600; line-height: 1.45;
}

.al-copy { padding: 20px 24px 28px; text-align: center; font-size: 13px; color: var(--al-muted); }

/* ── product sign-in card ────────────────────────────────────────── */

.al-split { display: flex; flex-wrap: wrap; min-height: 100vh; }

.al-photo {
  flex: 1 1 440px; min-height: 300px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--al-ink);
}
.al-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.al-photo--horse .al-photo__img { object-position: 48% 30%; }
.al-photo--cow .al-photo__img { object-position: 62% 50%; }
.al-photo::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(180deg, rgba(23,24,63,0) 0%, rgba(23,24,63,0.88) 100%);
}
.al-photo__text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 40px; color: var(--al-white); }
.al-badge {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--al-accent); color: var(--al-on-accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.al-slogan { margin: 0; max-width: 420px; font-size: 28px; line-height: 1.25; font-weight: 600; }

.al-main {
  flex: 1 1 520px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px 0;
}
.al-panel { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px; }
.al-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.al-heading { display: flex; flex-direction: column; gap: 6px; }
.al-heading h1 { font-size: 32px; line-height: 1.2; }

/* wp_login_form() markup */
.al-form form { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin: 0; }
.al-form p { margin: 0; }
.al-form .login-username, .al-form .login-password, .al-form .login-submit { grid-column: 1 / -1; }
.al-form .login-username label, .al-form .login-password label {
  display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600;
}
.al-form input[type="text"], .al-form input[type="password"], .al-form input[type="email"] {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--al-field); border-radius: 10px; background: var(--al-white);
  font: inherit; font-size: 16px; color: var(--al-ink);
}
.al-form input[type="text"]:focus, .al-form input[type="password"]:focus { border-color: var(--al-text); }
.al-form .login-remember label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 500; cursor: pointer; }
.al-form .login-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--al-text); }
.al-forgot { justify-self: end; }
.al-forgot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; }
.al-form .login-submit input[type="submit"] {
  width: 100%; height: 52px; border: 0; border-radius: 12px;
  background: var(--al-accent); color: var(--al-on-accent);
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .15s ease;
}
.al-form .login-submit input[type="submit"]:hover { background: var(--al-accent-hover); }

.al-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--al-muted); }
.al-or span { flex: 1; height: 1px; background: var(--al-line); }

.al .al-switch {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 12px; background: var(--al-white);
  border: 1px solid var(--al-line); border-radius: 14px;
  color: var(--al-text); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.al .al-switch:hover { color: var(--al-text-hover); border-color: var(--al-tint-line); box-shadow: 0 6px 18px rgba(23,24,63,0.08); }
.al-switch img { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.al-switch__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.al-switch__text span { font-size: 14px; color: var(--al-muted); }
.al-switch__text strong { font-size: 16px; font-weight: 700; }
.al-switch svg { flex: none; }

.al-note { margin: 0; text-align: center; font-size: 14px; color: var(--al-muted); }
.al-note a { font-weight: 600; }

.al--card .al-copy { margin-top: auto; padding-top: 32px; }

/* ── chooser ─────────────────────────────────────────────────────── */

.al-page { min-height: 100vh; display: flex; flex-direction: column; }
.al-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 40px; background: var(--al-white); border-bottom: 1px solid var(--al-line);
}
.al-header .al-logo { height: 40px; }
.al-chooser {
  flex: 1; width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 56px 24px 40px; display: flex; flex-direction: column; gap: 36px;
}
.al-chooser > .al-banner { align-self: center; width: 100%; max-width: 560px; }
.al-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.al-intro h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.al-sub { margin: 0; max-width: 560px; font-size: 17px; color: var(--al-muted); }

.al-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.al .al-card {
  flex: 1 1 360px; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--al-white); border: 1px solid var(--al-line); border-radius: 20px; overflow: hidden;
  color: var(--al-ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(23,24,63,0.06), 0 10px 28px rgba(23,24,63,0.07);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.al .al-card:hover { color: var(--al-ink); border-color: var(--al-tint-line); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,24,63,0.06), 0 16px 36px rgba(23,24,63,0.12); }
.al-card__img { display: block; width: 100%; height: 240px; object-fit: cover; }
.al-card__img--horse { object-position: 50% 28%; }
.al-card__img--cow { object-position: 50% 45%; }
.al-card__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.al-tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  background: var(--al-tint); color: var(--al-text);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
}
.al-card__title { font-size: 30px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.al-card__desc { font-size: 16px; line-height: 1.55; color: var(--al-muted); }
.al-btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 16px; border-radius: 12px; text-align: center;
  background: var(--al-accent); color: var(--al-on-accent);
  font-size: 16px; font-weight: 700;
}
.al .al-card:hover .al-btn { background: var(--al-accent-hover); }

.al-notes { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 15px; color: var(--al-muted); }
.al-notes p { margin: 0; }
.al-notes a { font-weight: 600; }
.al-notes__both { display: inline-flex; align-items: center; gap: 8px; }
.al-notes__both svg { flex: none; color: var(--al-navy); }

/* ── small screens ───────────────────────────────────────────────── */

@media (max-width: 720px) {
  .al-photo { min-height: 190px; flex-basis: 100%; }
  .al-photo__text { padding: 20px 24px; gap: 8px; }
  .al-slogan { font-size: 20px; }
  .al-main { padding: 28px 20px 0; }
  .al-heading h1 { font-size: 26px; }
  .al-header { padding: 12px 20px; }
  .al-header .al-logo { height: 32px; }
  .al-chooser { padding: 32px 16px 24px; gap: 24px; }
  .al-intro h1 { font-size: 28px; }
  .al-sub { font-size: 16px; }
  .al-card__img { height: 160px; }
  .al-card__body { padding: 20px; }
  .al-card__title { font-size: 24px; }
}
@media (max-width: 340px) {
  .al-form form { grid-template-columns: 1fr; }
  .al-forgot { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .al * { transition: none !important; }
  .al .al-card:hover { transform: none; }
}
