/* ----------------------------------
   Header
---------------------------------- */
.title {
  text-align: center;
  letter-spacing: -1px;
  font-weight: 800;
}

header {
  background-color: var(--color-bg-lightest);
  width: 100%;
  padding: 1rem 0;
}

/* ----------------------------------
   Form
---------------------------------- */
form {
  max-width: 90%;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: var(--color-bg-lightest);
  border: 1px solid var(--color-highlight);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(233, 240, 132, 0.4);
}

#signupForm {
  margin-top: 1rem;
  border: none;
}

/* ----------------------------------
   Form groups & labels
---------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  margin-top: 1.8rem;
  font-size: 0.7rem;
  position: relative;
  height: 70px;
}

.form-group label {
  position: absolute;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--color-text, #001d3d);
  top: 9px;
  left: 13px;
  border: none;
  opacity: 0.6;
  background-color: none0;
  transition: all 0.2s ease;
}

fieldset {
  border: none; /* remove default groove */
  padding: 0; /* remove extra spacing */
  margin: 0; /* remove default margin */
}

/* ----------------------------------
   Inputs
---------------------------------- */
.form-group input {
  color: var(--color-text, #001d3d); /* ✅ fixed: text is readable */
  font-weight: 650;
  padding: 0.5rem 2.5rem 0.5rem 0.5rem;
  border: 2px solid var(--color-highlight);
  border-radius: 6px;
  width: 100%;
  font-size: 0.7rem;
  background-color: var(--color-bg-lighter);
  letter-spacing: 1px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
label {
  outline: none;
  font-size: 0.9rem;
  top: -35px;
  left: 1px;
  color: var(--color-highlight);
  opacity: 1;
}

/* ----------------------------------
   Buttons
---------------------------------- */

.send-button-class {
  text-align: center;
}

.send-button {
  display: inline-block;
  padding: 0.3rem 1rem;
  margin: auto;
  background-color: var(--color-bg-lighter);
  color: var(--color-text, #001d3d);
  border: 2px solid var(--color-highlight);
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 1px;
  font-weight: 700;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 1rem;
}

.send-button:hover:enabled {
  background-color: var(--color-highlight);
  color: #fff;
  transform: translateY(-1px);
}

.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ----------------------------------
   Notes
---------------------------------- */
.notes {
  font-size: 0.65rem;
  text-align: center;
  margin: 1rem auto;
  color: var(--color-text-muted);
  max-width: 90%;
  background-color: var(--color-bg-lightest);
  padding: 0.6rem;
  border-radius: 15px;
}

.notes-heading {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.notes ul {
  list-style-position: outside;
  padding-left: 1.2rem;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

.notes ul li::marker {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* ----------------------------------
   Visually hidden (accessibility)
---------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* ----------------------------------
   Footer
---------------------------------- */
footer {
  text-align: center;
  font-size: 0.7rem;
  opacity: 0.6;
  padding: 0.5rem;
  margin-top: 2rem;
}

.version {
  font-size: 0.65rem;
  opacity: 0.4;
}

#formTitle {
  margin-bottom: 0.5rem;
}

/* ----------------------------------
   Labels & Indicators
---------------------------------- */
.labels {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
}

.indicator i {
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.indicator {
  position: absolute;
  font-size: 16px;
  margin-right: 0.2em;
  top: -0.1vh;
  right: 0.2em;
  width: -1.2em;
  height: -2em;
  text-align: center;
}

.form-help {
  color: var(--color-text-muted);
}

.pw-meter-div {
  display: flex;
  flex-direction: row;
  position: absolute;
  justify-content: space-between;
  margin: 0 0.2rem 0 0;
  bottom: 80px;
  right: 0px;
}

.pw-bar {
  width: 0;
  height: 100%;
}

.pw-strength {
  align-items: center;
  display: flex;
  flex-direction: row;
}

.line-box {
  width: 100px;
  height: 8px;
  border-radius: 110px;
  border: 2px solid var(--color-text);
}

.pw-strength-text {
  color: var(--color-text-muted);
}

.line {
  width: 0px;
  height: 5.5px;
  background-color: var(--color-text-muted);
  border-radius: 100px;
  border: none;
}

.view-password {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  right: 1.3rem;
  top: 0.5rem;
  display: block;
  cursor: pointer;
}
.unview-password {
  position: absolute;
  width: 1rem;
  height: 1rem;
  right: 1.3rem;
  top: 0.5rem;
  display: none;
  cursor: pointer;
}

.view-confirm-password {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  right: 1.3rem;
  top: 0.5rem;
  cursor: pointer;
  display: block;
}
.unview-confirm-password {
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  right: 1.3rem;
  top: 0.5rem;
  display: none;
  cursor: pointer;
}
