* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  width: 100%;
  max-width: 360px;
  padding: 0 24px;
}

.login-box {
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 40px 32px;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.sub {
  font-size: 13px;
  color: #555;
  margin-bottom: 28px;
}

input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  padding: 12px 14px;
  margin-bottom: 12px;
  outline: none;
  transition: border 0.2s;
}

input:focus { border-color: #444; }

button {
  width: 100%;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 13px;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.2s;
}

button:hover { opacity: 0.85; }

.err {
  color: #e05;
  font-size: 13px;
  margin-top: 12px;
  min-height: 18px;
}