/* The sign-in page (login.html). Self-contained: served before signing in. */
:root {
  --accent: #ae322e;
  --accent-dark: #8f2724;
  --text: #1f2933;
  --muted: #5b6b7b;
  --border: #cfd6de;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: #f3f4f6 radial-gradient(ellipse at 50% 0%, #ffffff 0%, #f3f4f6 70%) no-repeat;
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.login {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .08);
}

.logo { display: block; width: 200px; max-width: 70%; height: auto; margin: 0 auto 18px; }

.product {
  margin: 0 0 24px;
  text-align: center;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.product span { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.error {
  margin: 0 0 18px;
  padding: 9px 12px;
  border: 1px solid #f1c3c1;
  border-radius: 8px;
  background: #fdf1f0;
  color: #8f2724;
  font-size: 14px;
}

label { margin: 0 0 6px; font-size: 13px; font-weight: 600; }

input[type="text"], input[type="password"], .password input {
  width: 100%;
  height: 42px;
  margin: 0 0 16px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.password { position: relative; }
.password input { padding-right: 68px; }
.show {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.show:hover { background: #f1f3f5; color: var(--text); }
.show:focus-visible { outline: 2px solid var(--accent); }

.submit {
  height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.submit:hover { background: var(--accent-dark); }
.submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

footer { color: var(--muted); font-size: 13px; }

@media (max-width: 420px) {
  .login { justify-content: flex-start; padding-top: 24px; }
  .card { padding: 28px 20px 24px; }
}
