

/* Header styles */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header_container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 2.5rem;
  width: auto;
  margin: auto;
}

/* Main content */
.container {
  width: min(100% - 2rem, 32rem);
  margin: 3rem auto;
  padding: 1rem 1rem;
}

.container > h1 {
  padding: 2rem 0rem;
}

.title {
  color: var(--primary-purple);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 100%;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease-out forwards;
}

.card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.6s ease-out forwards;
}

.form-group {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.7s ease-out forwards;
}

.form-label {
  display: block;
  color: var(--primary-purple);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--dark-blue);
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: var(--tenant-secondary);
  box-shadow: 0 0 0 3px rgba(255, 128, 11, 0.15);
  outline: none;
}

.form-input.error {
  border-color: var(--tenant-secondary);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary-purple);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  opacity: 1;
}

.form-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out forwards;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label {
  color: var(--primary-purple);
  font-size: 0.875rem;
  cursor: pointer;
}

.forgot-link {
  color: var(--primary-purple);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--primary-orange);
}

.btn {
  display: flex;
  width: 100%;
  padding: 0.875rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 50px;
  background-color: var(--primary-orange);
  border: none;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  margin-top: 0.5rem;
  animation: fadeIn 0.9s ease-out forwards;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-orange);
  color: var(--primary-orange);
}

.btn-outline:hover {
  background-color: rgba(255, 128, 11, 0.8);
}

.divider {
  position: relative;
  text-align: center;
  margin: 2rem 0;
  animation: fadeIn 1s ease-out forwards;
}

.divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--gray-200);
}

.divider span {
  position: relative;
  background: var(--white);
  padding: 0 1rem;
  color: var(--primary-purple);
  font-weight: 500;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 2rem;
  margin-right: 0.5rem;
}

.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.4s ease-out forwards;
}

.alert-error {
  background-color: #fee2e2;
  color: #b91c1c;
  border-left: 4px solid var(--tenant-secondary);
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #10b981;
}

/* Loading spinner in button */
.btn-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
  display: none;
}

.btn.loading .btn-spinner {
  display: inline-block;
}

.btn.loading .btn-text {
  visibility: hidden;
  width: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
      width: 100%;
      padding: 0 1rem;
      margin: 2rem auto;
  }
  
  .card {
      padding: 1.5rem;
  }
  
  .title {
      font-size: 1.75rem;
  }
  
  .form-flex {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
  }
}

/* Error message */
.error-message {
  color: var(--tenant-secondary);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}