html {
  /* easy calculation for REM /
  / font-size: 10px; /
  / 10PX/16PX=0.625=62.5% /
  / Percentage of user's browser font-size /
  
  / WORKS IF ITS NOTHING ABSOLUTE POSITIONING TO THE BODY */
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-size: 62.5%;
  display: flex;
  flex-direction: column;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", sans-serif;
  line-height: 1;
  font-weight: 600;
  color: #555;
  overflow-x: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* important pentru footer jos */
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.main-header {
  height: 60px;
  background-color: #fff;
}

.forgot-main {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.forgot-container {
  width: 100%;
  max-width: 450px;
}

.forgot-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.forgot-header {
  text-align: center;
  margin-bottom: 2rem;
}

.forgot-icon {
  font-size: 50px;
  color: #7678ed;
  margin-bottom: 0.5rem;
}

.forgot-title {
  color: #333;
  font-size: 2.8rem; /* dimensiune ca la loginTitle */
  margin-bottom: 1rem;
  text-align: center;
}

.forgot-subtitle {
  font-size: 1.5rem; /* dimensiune ca la loginSubtitle */
  color: #666;
  margin-bottom: 2rem;
  font-weight: normal;
  text-align: center;
}

.forgot-form .form-group {
  margin-bottom: 1rem;
}

.forgot-form label {
  display: flex;
  align-items: center;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.forgot-form label span {
  margin-right: 0.5rem;
  color: #7678ed;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.forgot-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px; /* ca la login */
  border: 1px solid #ccc;
  font-size: 16px; /* ca la loginInputEmail/LoginInputPassword */
  transition: border 0.2s ease;
}

.forgot-form input:focus {
  border-color: #7678ed;
  outline: none;
}

.forgot-button {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, #7678ed, #7678ed);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
  box-shadow: 0 4px 15px #7678ed;
}

.forgot-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #7678ed;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .reset-container {
    padding: 0 2rem;
  }

  .reset-card {
    padding: 3rem 2rem;
  }

  .reset-title {
    font-size: 2.4rem;
  }

  .reset-subtitle {
    font-size: 1.4rem;
  }
}

.status-message {
  margin-top: 1rem;
  font-weight: 500;
  display: none;
}

.status-info {
  color: #4a90e2;
}

.status-success {
  color: #28a745;
}

.status-error {
  color: #dc3545;
}

.back-to-login {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
}

.back-to-login a {
  color: #7678ed;
  text-decoration: none;
  font-weight: 500;
}

.back-to-login a:hover {
  text-decoration: underline;
}

.footer {
  background-color: black;
  border-top: 1px solid #ddd;
  padding: 1rem 0;
  text-align: center;
  margin-top: auto; /* for pushing footer to bottom */
}

.footer .logo {
  width: 5%;
  margin-bottom: 0.5rem;
}

.footer p {
  font-size: 0.8rem;
  color: #999;
}

#forgotPasswordMessage {
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  display: none; /* ascuns implicit */
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

#forgotPasswordMessage.loading {
  display: block;
  background-color: #ffcc00;
  color: #333;
}

#forgotPasswordMessage.success {
  display: block;
  background-color: #4caf50;
  color: white;
}

#forgotPasswordMessage.error {
  display: block;
  background-color: #ff4d4d;
  color: white;
}
