.password-box {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: #aaa;
}


/* ===== Links & Text ===== */
.forgot {
  text-align: right;
  margin-bottom: 20px;
}

.forgot a {
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .login-right {
    display: none;
  }

  .login-left {
    padding: 40px 20px;
  }
}

/* alrt css */

/* ===== Floating Top Alerts ===== */
.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Success alert */
.alert.success {
  background: #e6ffed;
  color: #2e7d32;
  border: 1px solid #81c784;
}

/* Error alert */
.alert.error {
  background: #ffeaea;
  color: #c62828;
  border: 1px solid #ef5350;
}

/* Slide and fade animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Optional fade-out when hiding via JS */
.alert.fade-out {
  opacity: 0;
  transform: translate(-50%, -20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/* ===== Auth / Profile Common Layout ===== */
.auth-container {
  max-width: 420px;
  margin: 60px auto;
  background: #ffffff;
  padding: 30px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #1f2937;
}

/* Alerts */
.auth-container .error {
  background: #fee2e2;
  color: #991b1b;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

.auth-container .success {
  background: #ecfeff;
  color: #0f766e;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
}

/* Form elements */
.auth-container label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  color: #374151;
}

.auth-container input,
.auth-container select {
  width: 100%;
  padding: 11px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  transition: all 0.2s ease;
}

.auth-container input:focus,
.auth-container select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Readonly fields */
.auth-container input[readonly] {
  background: #f3f4f6;
}

/* Password eye */
.password-box {
  position: relative;
}

.password-box .toggle-password {
  position: absolute;
  right: 12px;
  top: 35%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #6b7280;
}

/* Buttons */
.auth-container .btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-container .btn:hover {
  background: #1e40af;
}

/* Footer links */
.auth-container .form-footer {
  text-align: center;
  margin-top: 15px;
}

.auth-container .form-footer a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.auth-container .form-footer a:hover {
  text-decoration: underline;
}

/* Backward compatibility for old auth layout */
.login-form {
  width: 100%;
}

.input-box input,
.input-box select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  margin-bottom: 14px;
}

.register-text {
  text-align: center;
  margin-top: 15px;
}

.register-text a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}