
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}


.container {
  width: 100%;
  max-width: 350px;
  padding: 20px;
}

form {
  background-color: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  padding: 30px 25px;
  text-align: center;
}


form h2 {
  font-family: "Grand Hotel", cursive;
  font-size: 36px;
  margin-bottom: 25px;
  color: #262626;
}


.input-group {
  position: relative;
  text-align: left;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  color: #8e8e8e;
  margin-bottom: 4px;
}

input {
  width: 100%;
  padding: 10px;
  background-color: #fafafa;
  border: 1px solid #dbdbdb;
  border-radius: 3px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

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


.error {
  display: block;
  font-size: 12px;
  color: red;
  min-height: 16px; 
  margin-top: 4px;
}


.success {
  color: #009f2c;
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}


button {
  width: 100%;
  background-color: #0095f6;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0078d4;
}

/* ===== Valid / Invalid Borders ===== */
input[style*="red"] {
  border-color: red !important;
}

input[style*="green"] {
  border-color: #00c853 !important;
}

/* ===== Responsive ===== */
@media (max-width: 400px) {
  form {
    padding: 20px 15px;
  }
}



.eye {
  position: absolute;
  right: 10px;
  top: 30px;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
  user-select: none;
}