* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  background: linear-gradient(180deg, #f5f5f0 0%, #e2e8f0 100%);
  color: #0f172a;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}
.wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand { text-align: center; }
.logo {
  font-size: 48px;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(135deg, #22c55e, #0a7d3e);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}
h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}
input[type="password"] {
  padding: 14px 16px;
  font-size: 17px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s;
}
input[type="password"]:focus {
  outline: none;
  border-color: #22c55e;
  background: white;
}
button {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #1f2937;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.05s;
}
button:active { transform: scale(0.98); }
.err {
  color: #dc2626;
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}
