@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #FAF8F1;
  --ink: #1A2A1E;
  --green: #0F3517;
  --accent: #E8A14F;
  --muted: #5A6A60;
  --card: #FFFFFF;
  --border: #E0DCD0;
  --error: #A52A24;
  --success: #17612A;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(100%, 410px);
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 55px rgba(15, 53, 23, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 28px;
  border-radius: 2px;
  background: var(--accent);
}

h1 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  color: var(--green);
  font-size: 22px;
  line-height: 1.2;
}

.intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-form { display: grid; gap: 16px; }

.form-help {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field { display: grid; gap: 7px; }

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #FCFBF6;
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(15, 53, 23, 0.12);
}

button, .text-button {
  font: inherit;
}

.primary-button {
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #FFFFFF;
  cursor: pointer;
  font-weight: 700;
}

.primary-button:hover { background: #174B21; }
.primary-button:disabled { cursor: wait; opacity: 0.65; }

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 18px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  min-height: 20px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.status[data-kind='error'] { color: var(--error); }
.status[data-kind='success'] { color: var(--success); }

[hidden] { display: none !important; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px; }
  h1 { font-size: 26px; }
  .auth-links { align-items: flex-start; flex-direction: column; }
}

.show-password { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--muted); }
.show-password input { width: 18px; min-height: 18px; accent-color: var(--green); }
.intro a { color: var(--green); font-weight: 700; }
