/* ----------- BASE LAYOUT ----------- */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #121212;
  color: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
img.logo {
  max-width: 300px;
  margin-bottom: 30px;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}
p {
  margin: 5px 0 25px 0;
  color: #ccc;
}

/* ----------- FORM ----------- */
#formContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}
input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
input:focus {
  outline: none;
  border-color: #19BDC6;
  box-shadow: 0 0 5px #19BDC6;
}
button {
  background-color: #19BDC6;
  color: white;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color .3s, transform .2s;
}
button:hover:not(:disabled) {
  background-color: #15a9b2;
  transform: scale(1.02);
}
button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* ----------- PASSWORD STRENGTH ----------- */
.strength-bar {
  width: 100%;
  height: 6px;
  background-color: #333;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.strength-level {
  height: 100%;
  width: 0%;
  background-color: red;
  transition: width .3s, background-color .3s;
}
#passwordHint {
  font-size: 13px;
  color: #aaa;
  text-align: left;
  width: 100%;
}

/* ----------- CARDS ----------- */
.error-card,
.success-card {
  border-radius: 10px;
  padding: 18px 22px;
  width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  font-size: 15px;
  line-height: 1.5em;
  margin-top: 20px;
}
.error-card {
  background-color: rgba(255,100,120,.15);
  border: 1px solid rgba(255,100,120,.4);
  color: #ffbcbc;
}
.success-card {
  background-color: rgba(40,200,120,.15);
  border: 1px solid rgba(40,200,120,.4);
  color: #9df5c0;
}

/* ----------- LOADER ----------- */
.loader {
  border: 4px solid #1e1e1e;
  border-top: 4px solid #19BDC6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-top: 20px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ----------- FOOTER ----------- */
footer {
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.footer-left img {
  max-height: 30px;
}
.footer-right select {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 14px;
}
.hidden {
  display: none !important;
}