/**
 * Auth screens (login / forgot / reset) — Liner-inspired split layout.
 * Scoped to .auth-* only; does not affect the main app theme yet.
 */

:root {
  /* Markh logo: hunter / forest green */
  --auth-brand: #1a5632;
  --auth-brand-dark: #123d24;
  --auth-brand-light: #2d7a4a;
  --auth-bg: #f3f6f4;
  --auth-surface: #ffffff;
  --auth-text: #1a2420;
  --auth-text-muted: #5c6b63;
  --auth-border: #dce5df;
  --auth-border-focus: #6b9a7d;
  --auth-accent: var(--auth-brand);
  --auth-accent-hover: var(--auth-brand-dark);
  --auth-showcase-bg: #0f1a14;
  --auth-showcase-text: #e8efe9;
  --auth-showcase-muted: #9bb0a3;
  --auth-radius: 6px;
  --auth-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--auth-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--auth-text);
  background: var(--auth-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* —— Form panel —— */
.auth-form-panel {
  flex: 1 1 52%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--auth-surface);
  border-right: 1px solid var(--auth-border);
}

.auth-form-inner {
  width: 100%;
  max-width: 400px;
}

.auth-brand {
  margin-bottom: 2.5rem;
}

.auth-brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 280px;
}

.auth-heading {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--auth-text);
}

.auth-lead {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--auth-text-muted);
}

.auth-field {
  margin-bottom: 1.25rem;
}

.auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--auth-text);
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 0.875rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--auth-text);
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--auth-border-focus);
  box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.14);
}

.auth-input-wrap--password .auth-input {
  padding-right: 2.75rem;
}

.auth-toggle-pw {
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  width: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--auth-text-muted);
  cursor: pointer;
  border-radius: var(--auth-radius);
}

.auth-toggle-pw:hover {
  color: var(--auth-text);
}

.auth-toggle-pw svg {
  display: block;
  margin: auto;
}

.auth-submit {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 0.5rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--auth-accent);
  border: none;
  border-radius: var(--auth-radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.auth-submit:hover {
  background: var(--auth-accent-hover);
}

.auth-submit:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}

.auth-footer-link {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--auth-text-muted);
}

.auth-footer-link a {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer-link a:hover {
  text-decoration: underline;
}

/* —— Showcase panel —— */
.auth-showcase {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  background-color: var(--auth-showcase-bg);
  background-image:
    linear-gradient(rgba(45, 122, 74, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 122, 74, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--auth-showcase-text);
}

.auth-showcase-inner {
  max-width: 420px;
}

.auth-showcase-tag {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8cfc0;
  border: 1px solid rgba(45, 122, 74, 0.35);
  border-radius: 4px;
}

.auth-showcase h2 {
  margin: 0 0 1rem;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #f9fafb;
}

.auth-showcase > .auth-showcase-inner > p {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--auth-showcase-muted);
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-points li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--auth-showcase-text);
}

.auth-points-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 122, 74, 0.12);
  border: 1px solid rgba(45, 122, 74, 0.22);
  border-radius: var(--auth-radius);
  color: #9bc4a8;
}

.auth-points strong {
  display: block;
  margin-bottom: 0.15rem;
  font-weight: 600;
  color: #f3f4f6;
}

.auth-points span {
  color: var(--auth-showcase-muted);
  line-height: 1.45;
}

.auth-showcase-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: var(--auth-showcase-muted);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .auth-showcase {
    display: none;
  }

  .auth-form-panel {
    flex: 1 1 100%;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .auth-form-panel {
    padding: 1.5rem 1.25rem;
    align-items: flex-start;
    padding-top: 2.5rem;
  }

  .auth-heading {
    font-size: 1.5rem;
  }
}
