* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #1e293b;
  min-height: 100vh;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
  padding: 32px 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-brand .logo {
  font-size: 32px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  border-radius: 12px;
}
.login-brand h1 { margin: 0; font-size: 19px; color: #1e293b; }
.login-brand p { margin: 3px 0 0; font-size: 12px; color: #64748b; }

.login-form { display: flex; flex-direction: column; gap: 14px; }
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}
.login-form input {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.login-form input:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.login-form button {
  margin-top: 6px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.login-form button:hover { background: #1d4ed8; }
.login-form button:disabled { background: #cbd5e1; cursor: not-allowed; }

.login-error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #dc2626;
  min-height: 18px;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .login-card { padding: 26px 20px; border-radius: 14px; }
}
