/* Password Reset Page Styles */

/* Base variables already defined in main.css */
.forgot-password-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  width: 100%;
}

.auth-card {
  background-color: var(--bg-primary);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.auth-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.auth-header {
  padding: 3.5rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

/* Decorative header gradient */
.auth-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to right, var(--accent-color), var(--info-color));
}

.auth-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--info-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(var(--accent-color-rgb), 0.3);
  position: relative;
}

.auth-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.auth-subtitle {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* Card Body */
.auth-body {
  padding: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.required {
  color: var(--error-color);
  margin-left: 0.2rem;
}

.input-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(var(--accent-color-rgb), 0.15);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.help-text {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--text-secondary);
}

/* Button styles */
.submit-button {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.2);
}

.submit-button:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.25);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(var(--accent-color-rgb), 0.15);
}

/* Loading button state */
.submit-button.loading {
  cursor: wait;
  opacity: 0.8;
}

/* Success button state */
.submit-button.success {
  background-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(var(--success-color-rgb), 0.25);
}

.submit-button.success:hover {
  background-color: var(--success-color);
  box-shadow: 0 6px 15px rgba(var(--success-color-rgb), 0.3);
}

/* Links section */
.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-link {
  color: var(--accent-color);
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--accent-color-hover);
  text-decoration: underline;
}

.auth-link i {
  margin-right: 0.35rem;
}

/* Success message container */
.success-container {
  text-align: center;
  padding: 1.5rem 0;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
  animation: success-bounce 1s ease;
}

@keyframes success-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.success-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Already logged in message */
.info-box {
  background-color: rgba(var(--info-color-rgb), 0.1);
  border-left: 3px solid var(--info-color);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.info-box p {
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

/* Error message */
.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Animation for fade in elements */
.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated checkmark for success */
.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 var(--success-color);
  animation: fill 0.4s ease-in-out 0.3s forwards, scale 0.3s ease-in-out 0.7s both;
  position: relative;
  background: var(--success-color);
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success-color);
  fill: none;
  animation: stroke 0.5s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.7s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: 0 0 0 15px rgba(var(--success-color-rgb), 0.2);
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .auth-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .submit-button {
  box-shadow: 0 4px 12px rgba(var(--accent-color-rgb), 0.3);
}

[data-theme="dark"] .submit-button:hover {
  box-shadow: 0 6px 15px rgba(var(--accent-color-rgb), 0.35);
}

[data-theme="dark"] .info-box {
  background-color: rgba(var(--info-color-rgb), 0.15);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .auth-header {
    padding: 3rem 1.5rem 1.25rem;
  }

  .auth-body {
    padding: 1.5rem;
  }
  
  .auth-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}
