:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #18212f;
  background: #f4f7fb;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(33, 119, 180, 0.16), transparent 34rem),
    linear-gradient(145deg, #f7fbff, #edf3f9);
}

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

.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid #dce5ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(34, 65, 96, 0.14);
}

.eyebrow {
  margin: 0 0 8px;
  color: #1872a8;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2rem;
}

.intro {
  margin: 12px 0 26px;
  color: #64748b;
  line-height: 1.65;
}

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

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 650;
}

input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd7e4;
  border-radius: 11px;
  background: #fff;
  color: #18212f;
  font: inherit;
}

input:focus {
  border-color: #2184bd;
  outline: 3px solid rgba(33, 132, 189, 0.16);
}

.button {
  margin-top: 4px;
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  background: #176c9f;
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button:hover { background: #125a85; }
.button:disabled { cursor: wait; opacity: 0.68; }

.message {
  padding: 11px 13px;
  border-radius: 10px;
  background: #edf5fa;
  color: #31556d;
  line-height: 1.5;
}

.message.is-error { background: #fff1f0; color: #a1241b; }
.message.is-success { background: #eefaf3; color: #17663d; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
  color: #8291a3;
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  background: #dce5ef;
  content: "";
}

.admin-login-link {
  display: block;
  padding: 12px 16px;
  border: 1px solid #cbd7e4;
  border-radius: 11px;
  color: #31556d;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.admin-login-link:hover { background: #f4f8fc; }
