:root {
  --bg: #eef0f3;
  --panel: #ffffff;
  --border: #dde1e7;
  --text: #1c2230;
  --muted: #6b7280;
  --accent: #2f5fd6;
  --accent-hover: #274fb3;
  --error-bg: #fdecec;
  --error-border: #f3b4b4;
  --error-text: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 32px;
}

.mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mark-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.field {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfbfc;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 95, 214, 0.15);
  background: #fff;
}

.error {
  font-size: 13px;
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

button[type="submit"] {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

button[type="submit"]:active {
  transform: translateY(1px);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: default;
}

button[type="submit"]:focus-visible,
.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shake {
  animation: shake 0.32s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .shake { animation: none; }
  button[type="submit"] { transition: none; }
}

