/* Password Reset Form - Black & White Theme */

/* Reset and base styles */
.password-reset-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.reset-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  width: 100%;
  max-width: 420px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.card-header {
  text-align: center;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
  color: white;
  position: relative;
}

.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, white, transparent);
  opacity: 0.2;
}

.lock-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.reset-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.025em;
}

.reset-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.reset-form {
  padding: 2rem;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  text-align: left;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  color: #9ca3af;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #000000, #404040);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper.focused .input-border {
  width: 100%;
}

.form-actions {
  margin-top: 2rem;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #000000 0%, #2c2c2c 100%);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.025em;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1a1a1a 0%, #404040 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn.loading {
  background: #6b7280;
  cursor: not-allowed;
}

.btn-text {
  transition: opacity 0.2s ease;
}

.loading-spinner {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.loading-spinner.active {
  opacity: 1;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-footer {
  padding: 1.5rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid #f3f4f6;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.back-link:hover {
  color: #000000;
  background: #f9fafb;
  text-decoration: none;
}

/* Enhanced Modal Styles */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  z-index: 1;
  padding: 1rem;
  width: 100%;
  max-width: 400px;
}

.custom-modal:not(.active) .modal-content {
  transform: scale(0.9) translateY(-20px);
}

.custom-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
  position: relative;
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.modal-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.modal-icon.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0.5rem;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.modal-body {
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

.modal-body p {
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.modal-actions {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}

.modal-btn {
  background: #000000;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.modal-btn:hover {
  background: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 640px) {
  .password-reset-container {
    padding: 1rem;
    min-height: 50vh;
  }

  .reset-card {
    border-radius: 12px;
  }

  .card-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .reset-form {
    padding: 1.5rem;
  }

  .form-footer {
    padding: 1rem 1.5rem 1.5rem;
  }

  .modal-container {
    padding: 0.5rem;
  }
}

/* Focus styles for accessibility */
.submit-btn:focus,
.form-input:focus,
.back-link:focus,
.modal-close:focus,
.modal-btn:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .reset-card {
    border-width: 2px;
  }

  .form-input {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
