:root {
  color-scheme: light;
  --ink: #1b1d1a;
  --muted: #676e68;
  --paper: #f3f4ef;
  --surface: #fbfcf8;
  --line: #d4dbd1;
  --accent: #b84f35;
  --accent-strong: #963b26;
  --accent-ink: #fff9f5;
  --error: #a6372c;
  --error-soft: #fff3f3;
  --error-line: #edcaca;
  --shadow: 0 18px 60px rgba(38, 46, 38, 0.1);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.auth-layout {
  display: grid;
  width: min(100% - 40px, 1160px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  place-items: center;
}

.auth-card {
  width: min(100%, 470px);
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  background: url("/jesyon-fasil-icon.png") center / contain no-repeat;
}

h1 { margin: 28px 0 8px; font-size: 34px; letter-spacing: -0.05em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.5; }
.form-stack { display: grid; gap: 16px; }
.form-field { display: grid; gap: 7px; }
.form-field label { font-size: 13px; font-weight: 700; }

.auth-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 79, 53, 0.18);
}

.button-primary {
  display: inline-flex;
  min-height: 46px;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 16px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary:hover { background: var(--accent-strong); }
.button-primary:disabled { cursor: wait; opacity: 0.7; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--accent-strong); }

.form-error {
  margin: 0;
  padding: 10px 12px;
  color: var(--error);
  background: var(--error-soft);
  border: 1px solid var(--error-line);
  border-radius: 7px;
  font-size: 13px;
}

.auth-footer { margin: 24px 0 0 !important; font-size: 14px; text-align: center; }

@media (max-width: 560px) {
  .auth-layout { width: min(100% - 24px, 1160px); padding: 20px 0; }
  .auth-card { padding: 28px 22px; }
  h1 { font-size: 30px; }
}
