@import url(https://fonts.googleapis.com/css?family=Inter:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic);

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

body {
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 420px;
}

.card {
  background: #141414;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #222;
}

h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.row {
  display: flex;
  gap: 12px;
}

.row .input-group {
  flex: 1;
}

.input-group {
  margin-bottom: 18px;
}

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

input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  outline: none;
  color: #fff;
  transition: border-color 0.2s ease;
}

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

input::placeholder {
  color: #444;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 46px;
}

.toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.toggle-btn:hover {
  opacity: 1;
}

.strength-meter {
  height: 3px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  color: #444;
  margin-bottom: 16px;
}

.requirements {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.requirements li {
  font-size: 0.7rem;
  color: #444;
  padding: 6px 10px;
  background: #1a1a1a;
  border-radius: 6px;
  border: 1px solid #222;
  transition: all 0.2s ease;
}

.requirements li.valid {
  color: #22c55e;
  border-color: #22c55e33;
  background: #22c55e11;
}

/* Strength colors */
.strength-bar.weak {
  background: #ef4444;
}

.strength-bar.fair {
  background: #eab308;
}

.strength-bar.good {
  background: #f97316;
}

.strength-bar.strong {
  background: #22c55e;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: #ea580c;
}

.footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #555;
}

.footer a {
  color: #f97316;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }
}
