/**
 * TourSure Reset Password Page
 * Standalone CSS for [toursure_reset_password] shortcode page
 */

.toursure-reset-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(76, 29, 149, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(217, 179, 92, 0.06) 0%, transparent 50%);
}

.toursure-reset-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 6px 16px rgba(76, 29, 149, 0.08);
  overflow: hidden;
}

.toursure-reset-card-header {
  padding: 40px 32px 24px;
  text-align: center;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  border-bottom: 1px solid #f3f4f6;
}

.toursure-reset-card-header--error {
  background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
}

.toursure-reset-icon-circle {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c1d95 0%, #581c87 50%, #6b21a8 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(76, 29, 149, 0.35);
}

.toursure-reset-icon-circle--error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.toursure-reset-card-header h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
}

.toursure-reset-card-header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.toursure-reset-card-body {
  padding: 28px 32px 32px;
}

.toursure-reset-perform-form .toursure-form-group {
  margin-bottom: 18px;
}

.toursure-reset-perform-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.toursure-reset-perform-form label .required {
  color: #ef4444;
}

.toursure-password-wrap {
  position: relative;
}

.toursure-reset-perform-form input[type="password"],
.toursure-reset-perform-form input[type="text"] {
  width: 100%;
  padding: 12px 44px 12px 14px;
  font-size: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.toursure-reset-perform-form input:focus {
  outline: none;
  border-color: #4c1d95;
  box-shadow: 0 0 0 4px rgba(76, 29, 149, 0.12);
}

.toursure-password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 6px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.toursure-password-toggle:hover {
  color: #4c1d95;
  background: #f3f4f6;
}

.toursure-strength-meter {
  margin-top: 8px;
  height: 4px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
}

.toursure-strength-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: #ef4444;
  border-radius: 999px;
  transition: width 0.3s ease, background 0.3s ease;
}

.toursure-strength-meter.weak span    { width: 33%;  background: #ef4444; }
.toursure-strength-meter.medium span  { width: 66%;  background: #f59e0b; }
.toursure-strength-meter.strong span  { width: 100%; background: #10b981; }

.toursure-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.toursure-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4c1d95 0%, #581c87 50%, #6b21a8 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(76, 29, 149, 0.3);
  text-decoration: none;
}

.toursure-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.4);
}

.toursure-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.toursure-btn-block {
  width: 100%;
}

.toursure-form-message {
  margin-top: 14px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 18px;
}

.toursure-form-message.error   { color: #dc2626; }
.toursure-form-message.success { color: #059669; }

@media (max-width: 480px) {
  .toursure-reset-page {
    padding: 20px 16px;
  }

  .toursure-reset-card-header {
    padding: 32px 22px 20px;
  }

  .toursure-reset-card-body {
    padding: 22px 22px 26px;
  }

  .toursure-reset-card-header h2 {
    font-size: 22px;
  }
}
