/* Forgot Password Page Styles */
body.forgot-password-page {
  background-image: url('/kky/system/img/login/bg1-b7bdb68747fa7e0b53e8c4a9a5a7015f.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Override header styles for forgot password page */
body.forgot-password-page .header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

body.forgot-password-page .site-title {
  color: var(--text-color);
}

/* 导航在白色背景上的深色样式 */
body.forgot-password-page .location-icon {
  color: #1f2937;
}

body.forgot-password-page .region-display {
  color: #1f2937;
}

body.forgot-password-page .dropdown-arrow-icon {
  color: #1f2937;
}

body.forgot-password-page .website-select-wrapper:hover {
  background-color: rgba(59, 146, 246, 0.1);
}

body.forgot-password-page .website-select-wrapper:hover .location-icon,
body.forgot-password-page .website-select-wrapper:hover .region-display,
body.forgot-password-page .website-select-wrapper:hover .dropdown-arrow-icon {
  color: #3B92F6;
}

body.forgot-password-page .visit-website-btn {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #3B92F6;
  border: 1px solid #e5e7eb;
}

body.forgot-password-page .visit-website-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  color: #2563eb;
  border-color: #3B92F6;
}

body.forgot-password-page .visit-website-btn .external-link-icon {
  color: #3B92F6;
}

body.forgot-password-page .guide-btn {
  color: #1f2937;
}

body.forgot-password-page .guide-btn:hover {
  background-color: rgba(66, 136, 255, 0.1);
  color: #3B92F6;
}

body.forgot-password-page .guide-btn .guide-icon {
  color: #1f2937;
}

body.forgot-password-page .guide-btn:hover .guide-icon {
  color: #3B92F6;
}


.forgot-password-main {
  min-height: calc(100vh - 5rem);
  padding-top: 5rem;
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-password-section {
  width: 100%;
  padding: 2rem;
}

.forgot-password-container {
  max-width: 500px;
  margin: 0 auto;
}

.forgot-password-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 0;
  padding: 3rem;
  box-shadow: 0 20px 64px rgba(66, 136, 255, 0.15);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 2rem;
}

.forgot-password-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.875rem;
}

.required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  z-index: 1;
  color: #6b7280;
  transition: color 0.3s ease;
}

.input-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.input-wrapper:hover .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #4288ff;
}

.input-wrapper input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem 0 2.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background-color: var(--white);
  font-family: inherit;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #4288ff;
  box-shadow: 0 0 0 3px rgba(66, 136, 255, 0.1);
}

.input-wrapper.error input {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  height: 0;
  overflow: hidden;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 0.5rem;
}

.error-message::before {
  content: "⚠";
  font-size: 0.75rem;
  color: #ef4444;
  margin-right: 0.25rem;
}

.checkDigit-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap;
}

.checkDigit-wrapper .input-wrapper {
  flex: 1;
}

.checkDigit-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 140px;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 0 0.75rem;
  background-color: #f9fafb;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkDigit-code:hover {
  border-color: #4288ff;
  background-color: #ffffff;
}

.checkDigit-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.checkDigit-code span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  letter-spacing: 0.1em;
  flex: 1;
  text-align: center;
}

.refresh-checkDigit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.refresh-checkDigit:hover {
  color: #4288ff;
  transform: rotate(180deg);
}

.refresh-checkDigit svg {
  width: 1rem;
  height: 1rem;
}

.submit-btn {
  width: 100%;
  height: 46px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background-color: #5a9cff;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(66, 136, 255, 0.25);
}

.submit-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.login-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.login-link a {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 0.25rem;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #5a9cff;
  text-decoration: underline;
}

/* Success message styles */
.success-message {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 0;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 64px rgba(34, 197, 94, 0.15);
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.success-content svg {
  width: 3rem;
  height: 3rem;
  color: #22c55e;
}

.alert-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color:red;
}

.alert-error svg {
  width: 3rem;
  height: 3rem;
  color: #c52222;
}

.success-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.success-text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.success-hint {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .forgot-password-section {
    padding: 1rem;
  }

  .forgot-password-card {
    padding: 2rem 1.5rem;
  }

  .forgot-password-title {
    font-size: 1.75rem;
  }

  .forgot-password-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .checkDigit-wrapper {
    flex-direction: row;
    gap: 0.75rem;
  }

  .checkDigit-code {
    width: 140px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .forgot-password-main {
    padding-top: 4rem;
  }

  .forgot-password-card {
    padding: 1.5rem 1rem;
  }

  .forgot-password-title {
    font-size: 1.5rem;
  }
}

