:root {
  --bg: #ffffff;
  --text: #0b1a2b;
  --muted: #4a5a70;
  --blue: #165ef0;
  --blue-600: #0f4dd1;
  --blue-50: #eef4ff;
  --border: #e6e8eb;
  --success: #1a7f37;
  --error: #b00020;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(13, 34, 64, 0.06);
  padding: 24px;
}

.card-header {
  text-align: center;
  margin-bottom: 18px;
}

.logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card-header h1 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.subtitle {
  color: var(--muted);
  margin: 6px 0 0;
  font-size: 14px;
}

.field { margin: 14px 0; }

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-50);
}

.password-wrap {
  position: relative;
  display: grid;
}

.toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-600);
  font-size: 12px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.toggle:hover { background: var(--blue-50); border-color: var(--blue-600); }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 8px;
}

.remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.link {
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
}

.link:hover { text-decoration: underline; }

.btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover { box-shadow: 0 6px 16px rgba(22, 94, 240, 0.25); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  color: var(--error);
  font-size: 12px;
  min-height: 16px;
  margin-top: 6px;
}

.status {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  min-height: 18px;
}

.card-footer {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 420px) {
  .card { padding: 18px; }
  .logo { width: 48px; height: 48px; }
}