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

html, body {
  height: 100%;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #111111;
  color: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 40px 36px;
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #e8e8e8;
}

.sub {
  font-size: 0.82rem;
  color: #666;
  margin-bottom: 32px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: #e8e8e8;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
input:focus {
  border-color: rgba(200, 200, 200, 0.3);
}

.pw-wrap {
  position: relative;
  margin-bottom: 16px;
}
.pw-wrap input {
  padding-right: 42px;
  margin-bottom: 0;
}
.pw-wrap .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  width: auto;
  margin: 0;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pw-wrap .pw-toggle:hover {
  color: #aaa;
}
.pw-wrap .pw-toggle svg {
  width: 18px;
  height: 18px;
}

button {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #383838, #585858);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 4px;
}
button:hover {
  opacity: 0.85;
}

.error {
  margin-top: 18px;
  padding: 10px 14px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #f87171;
}

.switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #555;
}
.switch a {
  color: #909090;
  text-decoration: none;
}
.switch a:hover {
  text-decoration: underline;
}
