:root {
  --bg: #f5f4ef;
  --card: #ffffff;
  --border: #e7e5dd;
  --text: #171614;
  --text-muted: #6b6862;
  --accent: #b8862f;
  --accent-soft: #f2e6cf;
  --black: #16150f;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 18, 10, 0.04), 0 8px 24px rgba(20, 18, 10, 0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.brand a { color: var(--text); text-decoration: none; }
.brand-accent { color: var(--accent); }

.login-card h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.sub { font-size: 13.5px; color: var(--text-muted); margin: 0 0 22px; line-height: 1.5; }

form { display: flex; flex-direction: column; }
label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin: 12px 0 6px; }
label:first-of-type { margin-top: 0; }

input[type="text"], input[type="password"] {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}
input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.error-line {
  min-height: 16px;
  font-size: 13px;
  color: #b3413a;
  margin: 10px 0 2px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.85; }
.btn-primary.full { width: 100%; margin-top: 14px; }
