:root {
  --ink: #111713;
  --muted: #66716b;
  --line: #dbe1dc;
  --paper: #f4f3f1;
  --forest: #12392b;
  --lime: #dffc2f;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 100vh;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px clamp(32px, 6vw, 92px) 28px;
}

.auth-brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  gap: 10px;
  letter-spacing: -0.5px;
  width: fit-content;
}

.auth-brand > span {
  align-items: center;
  background: var(--lime);
  border-radius: 11px;
  color: var(--forest);
  display: flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.auth-brand img {
  border-radius: 11px;
  display: block;
  height: 42px;
  width: 42px;
}

.auth-brand .ph { font-size: 26px; }

.field-hint {
  color: var(--muted, #66716b);
  font-size: 12px;
  line-height: 1.5;
  margin: -4px 0 10px;
}

.auth-card {
  margin: auto;
  max-width: 540px;
  padding: 48px 0 34px;
  width: 100%;
}

.auth-tabs {
  background: #e8ebe8;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 38px;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
}

.auth-tabs button.active {
  background: white;
  box-shadow: 0 1px 5px rgba(24, 39, 30, 0.08);
}

.eyebrow {
  color: #678071;
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.auth-view h1,
.auth-aside h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.auth-view h1 {
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -2.2px;
  line-height: 1;
  margin: 17px 0 13px;
}

.auth-view > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 470px;
}

form { display: grid; gap: 9px; }

label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 7px;
}

input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

input:focus {
  border-color: #819588;
  box-shadow: 0 0 0 3px rgba(18, 57, 43, 0.08);
}

.auth-input { position: relative; }

.auth-input > .ph {
  color: #748078;
  font-size: 18px;
  left: 15px;
  position: absolute;
  top: 15px;
}

.auth-input input { padding-left: 44px; padding-right: 48px; }

.password-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 44px;
  position: absolute;
  right: 3px;
  top: 2px;
  width: 42px;
}

.password-toggle .ph { font-size: 18px; }

.auth-submit {
  align-items: center;
  background: #121713;
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 16px;
  min-height: 50px;
  padding: 0 18px;
}

.auth-submit:disabled { cursor: wait; opacity: 0.65; }

.auth-admin-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--forest);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 8px;
  margin-top: 10px;
  min-height: 38px;
  padding: 0 12px;
}
.auth-admin-link .ph { font-size: 16px; }
.auth-admin-link .ph-arrow-right { margin-left: auto; }

.field-grid {
  display: grid;
  gap: 9px 12px;
  grid-template-columns: 1fr 1fr;
}

.field-grid > div { display: grid; gap: 8px; }

.auth-error {
  color: #a32f23;
  font-size: 12px;
  min-height: 18px;
  padding-top: 8px;
}

.auth-terms {
  color: #7a847e;
  font-size: 9px;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 480px;
  text-align: center;
}

.auth-aside {
  background: #101713;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(52px, 7vw, 105px);
  position: relative;
}

.auth-aside .eyebrow { color: #aabcaf; }

.auth-aside h2 {
  font-size: clamp(45px, 5.4vw, 76px);
  letter-spacing: -3.5px;
  line-height: 0.98;
  margin: 24px 0;
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.auth-aside > p {
  color: #b5c0b8;
  font-size: 15px;
  line-height: 1.7;
  max-width: 580px;
}

.auth-feature-list {
  border-top: 1px solid #344139;
  display: grid;
  gap: 0;
  margin-top: 54px;
}

.auth-feature-list article {
  align-items: center;
  border-bottom: 1px solid #344139;
  display: grid;
  gap: 16px;
  grid-template-columns: 34px 1fr;
  padding: 18px 0;
}

.auth-feature-list .ph { color: var(--lime); font-size: 24px; }
.auth-feature-list strong, .auth-feature-list span { display: block; }
.auth-feature-list strong { font-size: 13px; }
.auth-feature-list span { color: #8fa097; font-size: 11px; margin-top: 4px; }

@media (max-width: 900px) {
  .auth-shell { display: block; }
  .auth-aside { display: none; }
  .auth-panel { min-height: 100vh; padding: 24px; }
  .auth-card { padding-top: 54px; }
}

@media (max-width: 560px) {
  .auth-panel { padding: 20px; }
  .auth-card { padding: 40px 0 20px; }
  .auth-view h1 { font-size: 40px; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
