* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: #000;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  text-align: center;
  margin-top: 80px;
}

header h1 {
  font-size: 32px;
  font-weight: 600;
}

header p {
  margin-top: 8px;
  font-size: 14px;
  color: #aaa;
}

main {
  margin: 60px auto 0;
  width: 90%;
  max-width: 480px;
  text-align: center;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  background: transparent;
  border: 1px solid #444;
  color: #fff;
  font-size: 15px;
}

.password-wrapper input:focus {
  outline: none;
  border-color: #e0e0e0;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.7;
}

.toggle-btn:hover {
  opacity: 1;
}

.scan-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: #e0e0e0;
  border: none;
  color: #000;
  font-size: 16px;
  cursor: pointer;
}

.scan-btn:hover {
  background: #fff;
}

#result {
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.6;
}

.safe,
.danger {
  color: #e0e0e0;
}

.loader {
  margin: 25px auto;
  width: 28px;
  height: 28px;
  border: 3px solid #444;
  border-top: 3px solid #e0e0e0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

footer {
  margin-top: auto;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #777;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
