/* Backdrop */
.auth-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Slide Panel */
.auth-panel {
  position: fixed;
  top: 0; right: -400px; /* Slide offscreen */
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #ffffff; /* Decision background */
  box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Active state */
.auth-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.auth-panel.active {
  right: 0;
}

/* Header */
.auth-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
}
.auth-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  color: #111111;
}
.auth-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Body */
.auth-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}
.auth-form {
  display: flex;
  flex-direction: column;
}
.auth-form.hidden {
  display: none;
}
.auth-form label {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  margin-top: 15px;
  color: #333333;
}
.auth-form input {
  margin-top: 5px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

/* Buttons */
.btn-primary {
  margin-top: 20px;
  padding: 12px;
  background-color: #4F46E5; /* Decision primary */
  color: #ffffff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #4338CA;
}

/* Toggle links */
.auth-toggle-text {
  margin-top: 15px;
  font-size: 0.875rem;
  color: #555555;
}
.auth-toggle-link {
  color: #4F46E5;
  cursor: pointer;
}
.forgot-password {
    margin-top: 10px;
    text-align: right;
}

.forgot-password a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    cursor: pointer;
}

.forgot-password a:hover {
    text-decoration: underline;
    color: #111827;
}


/* Responsive */
@media (max-width: 480px) {
  .auth-panel {
    max-width: 100%;
  }
}
