:root {
  color-scheme: light;
  --nav: #1c2927;
  --accent: #df5a43;
  --paper: #fffefb;
  --canvas: #f4f1e9;
  --ink: #17211f;
  --muted: #66706d;
  --line: #d8d5cc;
  font-size: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(223, 90, 67, 0.15), transparent 23rem),
    radial-gradient(circle at 85% 88%, rgba(68, 122, 107, 0.18), transparent 26rem),
    var(--canvas);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: clamp(28px, 6vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 26px 80px rgba(29, 41, 38, 0.15);
}

.login-brand {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 14px;
  color: var(--nav);
  background: #f2c85f;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

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

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

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

input[type="text"],
input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(223, 90, 67, 0.13);
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 5px;
  color: var(--muted);
  font-weight: 500;
}

.remember input { accent-color: var(--accent); }

button {
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--nav);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover { background: #293c38; }
button:disabled { cursor: wait; opacity: 0.7; }

.message {
  min-height: 1.4em;
  margin: 7px 0 0;
  color: #a83d31;
  font-size: 0.8rem;
  line-height: 1.45;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.qr-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: center;
}

.qr-login h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.qr-login p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.qr-login a {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.qr-login img {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-login img[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    font-size: 14px;
  }

  .login-card {
    width: min(390px, 100%);
    padding: clamp(26px, 5vw, 38px);
  }
}

@media (max-width: 420px) {
  .qr-login {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
  }

  .qr-login a {
    width: 96px;
    height: 96px;
  }
}
