/* Login pages (index.php, associate_login.php): same tokens as atharv-ui.css. */
:root {
  --ax-canvas: #ebe8e1; --ax-ink: #1c1c1a; --ax-ink-2: #3a3936; --ax-muted: #77736a;
  --ax-line: rgba(28, 28, 26, .1); --ax-line-strong: rgba(28, 28, 26, .18);
  --ax-accent: #c8462b; --ax-accent-soft: #f7ddd3; --ax-green: #2d5b4c; --ax-mustard: #f0c64b;
  --ax-surface: #fbf9f5; --ax-focus: 0 0 0 3px rgba(200, 70, 43, .28);
  --ax-font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--ax-font); color: var(--ax-ink); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(800px 520px at 8% 0%, rgba(246, 210, 188, .65), transparent 60%),
    radial-gradient(700px 500px at 92% 8%, rgba(247, 232, 178, .55), transparent 60%),
    radial-gradient(800px 600px at 80% 100%, rgba(214, 226, 214, .5), transparent 60%),
    var(--ax-canvas);
}
:focus-visible { outline: none; box-shadow: var(--ax-focus); }
.ax-login-env { position: fixed; top: 0; left: 0; right: 0; padding: 6px 16px; text-align: center; background: var(--ax-mustard); font: 600 12px/1.3 var(--ax-font); z-index: 10; }
.ax-login-env strong { text-transform: uppercase; letter-spacing: .06em; }
.ax-fy { position: fixed; top: 22px; right: 24px; z-index: 5; }
.ax-fy select {
  appearance: none; font: 600 13px var(--ax-font); color: var(--ax-ink);
  padding: 10px 36px 10px 16px; border-radius: 999px; border: 1px solid var(--ax-line);
  background: var(--ax-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c1c1a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  box-shadow: 0 10px 30px -20px rgba(60, 40, 20, .5); cursor: pointer;
}
.ax-login {
  width: 100%; max-width: 1040px; min-height: 600px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border-radius: 32px; overflow: hidden;
  background: rgba(255, 253, 249, .78); border: 1px solid var(--ax-line);
  box-shadow: 0 2px 6px rgba(28, 28, 26, .05), 0 40px 80px -40px rgba(70, 45, 20, .45);
  backdrop-filter: blur(8px);
}
.ax-login-hero {
  position: relative; padding: 44px 44px 40px; color: #f4f1ea; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(200, 70, 43, .45), transparent 60%),
    radial-gradient(460px 360px at 0% 100%, rgba(45, 91, 76, .7), transparent 62%),
    var(--ax-ink);
}
.ax-login-brand { display: flex; align-items: center; }
/* approved wordmark (black background): only on this dark panel */
.ax-login-wordmark { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.ax-login-hero h1 { font: 700 46px/1.02 var(--ax-font); letter-spacing: -0.035em; margin: 40px 0 14px; }
.ax-login-hero p { color: rgba(255, 255, 255, .7); font-size: 15px; line-height: 1.6; max-width: 360px; }
.ax-login-points { list-style: none; display: grid; gap: 12px; margin-top: 34px; }
.ax-login-points li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .85); }
.ax-login-points i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; background: rgba(255, 255, 255, .12); flex: 0 0 30px; }
.ax-login-foot { font-size: 12px; color: rgba(255, 255, 255, .5); margin-top: 40px; }

.ax-login-form { padding: 48px 48px 40px; display: flex; flex-direction: column; justify-content: center; }
/* light panel: logo mark + brand name (the wordmark is not used on light surfaces) */
.ax-login-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 700 17px/1.2 var(--ax-font); letter-spacing: -0.02em; color: var(--ax-ink); }
.ax-login-mark img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; object-fit: contain; }
.ax-login-form h2 { font: 700 28px/1.1 var(--ax-font); letter-spacing: -0.03em; }
.ax-login-form .ax-sub { color: var(--ax-muted); font-size: 14px; margin: 6px 0 22px; }
.ax-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(28, 28, 26, .06); margin-bottom: 22px; }
.ax-switch a { text-align: center; padding: 10px 12px; border-radius: 999px; font: 600 13.5px var(--ax-font); color: var(--ax-ink-2); text-decoration: none; }
.ax-switch a.is-active { background: var(--ax-ink); color: #fff; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7); }
.ax-errors { border-radius: 14px; background: var(--ax-accent-soft); color: #8f2b1c; padding: 12px 14px; margin-bottom: 18px; font-size: 13.5px; font-weight: 600; }
.ax-errors div + div { margin-top: 4px; }
.ax-field { margin-bottom: 16px; }
.ax-field label { display: block; font-weight: 600; font-size: 13px; color: var(--ax-ink-2); margin-bottom: 7px; }
.ax-field input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--ax-line-strong);
  background: rgba(255, 255, 255, .9); font: 500 15px var(--ax-font); color: var(--ax-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ax-field input:focus { border-color: var(--ax-accent); box-shadow: var(--ax-focus); outline: none; }
.ax-pw { position: relative; }
.ax-pw input { padding-right: 76px; }
.ax-pw button {
  position: absolute; right: 8px; top: 8px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--ax-line); background: #fff; font: 600 12px var(--ax-font); color: var(--ax-ink-2); cursor: pointer;
}
.ax-row { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.ax-row a { color: var(--ax-muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.ax-row a:hover { color: var(--ax-accent); }
.ax-submit {
  width: 100%; height: 50px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ax-ink); color: #fff; font: 700 15px var(--ax-font); letter-spacing: -0.01em;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .8); transition: transform .05s ease, background .15s ease;
}
.ax-submit:hover { background: #33322f; }
.ax-submit:active { transform: translateY(1px); }

@media (max-width: 900px) {
  .ax-login { grid-template-columns: 1fr; max-width: 520px; }
  .ax-login-hero { padding: 30px 28px; }
  .ax-login-hero h1 { font-size: 32px; margin: 24px 0 10px; }
  .ax-login-points, .ax-login-foot { display: none; }
  .ax-login-form { padding: 32px 28px; }
}
@media (max-width: 480px) {
  body { padding: 64px 12px 16px; align-items: flex-start; }
  .ax-fy { top: 34px; right: 12px; }
  .ax-login { border-radius: 24px; }
}
