:root {
  --sand: #e9d5a1;
  --sand-edge: #c9ae76;
  --ink: #2f2a23;
  --blue-deep: #1e5f7a;
  --ocean: #2f8f9c;
  --sky: #6fa8c9;
  --glass-bg: rgba(255,255,255,.55);
  --glass-border: rgba(255,255,255,.65);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 15px/1.4 system-ui, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #fbfaf6 0%, #f8f4ea 35%, #f3f6f6 70%, #eff4f6 100%);
  position: relative;
  overflow: hidden;
}
body::before, body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
}
body::before {
  width: 460px; height: 460px;
  background: var(--sky);
  opacity: .09;
  top: -140px; left: -120px;
}
body::after {
  width: 420px; height: 420px;
  background: var(--ocean);
  opacity: .08;
  bottom: -160px; right: -110px;
}
.card {
  position: relative;
  z-index: 1;
  width: 340px;
  max-width: 90vw;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(30,95,122,.18), inset 0 1px 0 rgba(255,255,255,.6);
}
.logo { display: block; width: 132px; margin: 0 auto 16px; filter: drop-shadow(0 4px 10px rgba(30,95,122,.2)); }
h1 {
  margin: 0 0 22px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--ocean) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
label { display: block; font-size: 13px; color: #5c5548; margin: 12px 0 5px; font-weight: 500; }
input {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(185,176,160,.7);
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(111,168,201,.2);
  background: #fff;
}
button {
  font: inherit;
  font-weight: 600;
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--sky) 100%);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30,95,122,.3);
  transition: transform .12s, box-shadow .12s;
}
button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,95,122,.4); }
button:active { transform: translateY(0); }
.error {
  margin: 14px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(251,233,231,.9);
  border: 1px solid rgba(216,180,176,.7);
  color: #a8322a;
  font-size: 13px;
  text-align: center;
}
