/* Main container styling */
.auth-container {
  min-height: 100vh;
  background: #f8f6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Central card container */
.auth-card {
  background: transparent;
  border-radius: 0;
  padding: 2rem 1.5rem;
  box-shadow: none;
  backdrop-filter: none;
  border: none;
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: visible;
  margin: 0 auto;
}

/* Remove background pattern */
.auth-card::before {
  display: none;
}

/* Header section styling */
.auth-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.auth-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  filter: none;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 300;
  color: #2d3748;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.auth-subtitle {
  color: #718096;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

/* Form styling */
.auth-form {
  position: relative;
  z-index: 1;
}

/* Input field styling */
.auth-input {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  border: 2px solid #48bb78 !important;
  border-radius: 8px;
  background: #e6e3dd !important;
  transition: all 0.2s ease;
  margin-bottom: 0.8rem;
  font-weight: 400;
  color: #333;
  text-align: center;
  box-sizing: border-box;
}

.auth-input::placeholder {
  color: #666;
  font-weight: 400;
  text-align: center;
}

.auth-input:focus {
  outline: none;
  border-color: #38a169 !important;
  background: #ddd8d1 !important;
  transform: none;
  box-shadow: none;
}

.auth-input:valid {
  background: #e6e3dd !important;
  border-color: #48bb78 !important;
}

.auth-input.is-invalid {
  background: #f8d7da !important;
  color: #721c24 !important;
  border-color: #f5c6cb !important;
}

.auth-input.is-valid {
  background: #e6e3dd !important;
  border-color: #48bb78 !important;
}

/* Button styling */
.auth-button {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  background: #d2691e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 1rem 0;
  position: relative;
  overflow: hidden;
}

.auth-button:hover {
  background: #b8601a;
  transform: none;
  box-shadow: none;
}

.auth-button:active {
  transform: none;
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading state for button */
.auth-button.loading {
  color: transparent;
}

.auth-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

/* Link styling */
.auth-link {
  display: block;
  text-align: center;
  color: #4a5568;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #d2691e;
  text-decoration: underline;
}

/* Checkbox container styling */
.auth-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem 0;
  gap: 0.5rem;
}

.auth-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #d2691e;
}

.auth-checkbox-label {
  color: #4a5568;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

/* Bottom section styling */
.auth-bottom {
  text-align: center;
  border-top: none;
  padding-top: 1rem;
  position: relative;
  z-index: 1;
}

.auth-secondary-link {
  color: #d2691e;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-secondary-link:hover {
  color: #b8601a;
  text-decoration: underline;
}

.auth-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: #e6e3dd;
  color: #666;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 2px solid #48bb78;
}

.auth-back-button:hover {
  background: #ddd8d1;
  color: #333;
  transform: none;
}

/* Alert styling */
.alert {
  margin-bottom: 1rem;
  border-radius: 6px;
  border: none;
  position: relative;
  z-index: 1;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  padding: 0.8rem 1rem;
}

.alert-success {
  background: rgba(72, 187, 120, 0.1);
  color: #22543d;
  border-left: 3px solid #48bb78;
}

.alert-danger {
  background: rgba(245, 101, 101, 0.1);
  color: #742a2a;
  border-left: 3px solid #f56565;
}

/* Alert dismissal animation */
.alert.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Password strength indicator */
.password-strength {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-weak {
  background: #fc8181;
  width: 33%;
}

.password-strength-medium {
  background: #f6ad55;
  width: 66%;
}

.password-strength-strong {
  background: #68d391;
  width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
  .auth-container {
    padding: 1.5rem 1rem;
    min-height: 100vh;
  }

  .auth-card {
    max-width: 90%;
    padding: 1.5rem 1rem;
  }

  .auth-emoji {
    font-size: 3rem;
  }

  .auth-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1rem 0.5rem;
    min-height: 100vh;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    max-width: 100%;
    margin: 0 auto;
  }

  .auth-emoji {
    font-size: 2.5rem;
  }

  .auth-title {
    font-size: 1.4rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .auth-input,
  .auth-button {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }

  .auth-checkbox-container {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .auth-back-button {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 320px) {
  .auth-container {
    padding: 0.5rem 0.25rem;
  }

  .auth-card {
    padding: 1rem 0.75rem;
  }

  .auth-emoji {
    font-size: 2rem;
  }

  .auth-title {
    font-size: 1.2rem;
  }

  .auth-input,
  .auth-button {
    padding: 0.8rem 0.9rem;
    font-size: 0.85rem;
  }
}
