/* ==== Authentification === */
.auth-container {
  max-width: 450px;
  margin: 80px auto;
  padding: 40px;
  background: var(--bg-white) fff;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.auth-container h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.auth-container label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.auth-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 1em;
}

.auth-container button {
  width: fit-content;
  color: white;
  border: none;
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.auth-container button:hover {
  background: #1a5fd1;
}

.auth-form .form-group {
  margin-bottom: 15px;
}

.auth-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.auth-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  font-size: 1em;
}

.auth-form button {
  width: 100%;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.register-btn {
  display: inline-block;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.register-btn:hover {
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--secondary-color);
  color: var(--bg-white);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background-color: #1a5fd1;
}

.main-content {
  display: block;
}

.alert-danger {
  font-size: 0.95rem;
  padding: 10px 15px;
  border-radius: 6px;
}

/* ==== Password Toggle Styles === */
.password-field {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  cursor: pointer;
  color: #6b6b6b;
  font-size: 16px;
  z-index: 10;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  height: fit-content;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.password-field input {
  padding-right: 45px !important;
}
