/* ===== CHANGE PASSWORD PAGE STYLES ===== */
/* Modern design system matching other pages */


* {
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #f3f4f6;
  --border-color: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #3b82f6;
}

/* ===== PAGE CONTAINER ===== */

.password-change-container {
  max-width: 700px;
  margin: 40px auto 20px auto;
  padding: 0 20px 20px 20px;
  min-height: 60vh;
}


/* ===== PAGE HEADING ===== */

.page-heading {
  text-align: center;
  margin-bottom: 32px;
}

.page-heading h1 {
  color: var(--text-primary, #111827);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  display: flex;
  align-items: left;
  justify-content: center;
  gap: 12px;
}

.page-heading h1 i {
  color: var(--primary-color, #3b82f6);
  font-size: 1.75rem;
}

.page-heading p {
  color: var(--text-secondary, #6b7280);
  font-size: 1rem;
  margin: 0;
}

/* ===== PROGRESS STEPS ===== */

.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 24px;
  padding: 1.25rem 1rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid var(--border-color, #e5e7eb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.progress-step::after {
  content: '→';
  position: absolute;
  right: -1rem;
  color: var(--text-secondary, #6b7280);
  font-size: 1.2rem;
  opacity: 0.5;
}

.progress-step:last-child::after {
  display: none;
}

.progress-step .step-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--secondary-color, #f3f4f6);
  color: var(--text-secondary, #6b7280);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color, #e5e7eb);
}

.progress-step .step-label {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-hover, #2563eb) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-color, #3b82f6);
}

.progress-step.active .step-label {
  color: var(--text-primary, #111827);
  font-weight: 600;
}

.progress-step.completed .step-number {
  background: var(--success-color, #10b981);
  color: white;
  border-color: var(--success-color, #10b981);
  font-size: 0; /* Hide the number text */
}

.progress-step.completed .step-number::before {
  content: '✓';
  font-weight: 700;
  font-size: 1rem; /* Show checkmark at proper size */
}

.progress-step.completed .step-label {
  color: var(--success-color, #10b981);
}

.password-change-content {
  background: white;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* ===== PAGE HEADER ===== */

.page-header {
  text-align: center;
  padding: 40px 32px 32px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-hover, #2563eb) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.header-icon i {
  font-size: 2rem;
  color: white;
}

.page-header h1 {
  color: var(--text-primary, #111827);
  margin: 0 0 12px 0;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-secondary, #6b7280);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

/* ===== FORM ===== */

.password-form {
  padding: 24px;
}

/* ===== FORM STEPS ===== */

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STEP HEADER ===== */

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color, #e5e7eb);
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-hover, #2563eb) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-header h2 {
  color: var(--text-primary, #111827);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-info {
  color: var(--text-secondary, #6b7280);
  font-size: 0.95rem;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.step-info strong {
  color: var(--text-primary, #111827);
  font-weight: 600;
}

/* ===== STATUS MESSAGES ===== */

.status-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease-out;
}

.status-message::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.status-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-message.success::before {
  content: '\f058'; /* Check circle */
}

.status-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-message.error::before {
  content: '\f06a'; /* Exclamation circle */
}

.status-message.info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.status-message.info::before {
  content: '\f05a'; /* Info circle */
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== INPUT GROUPS ===== */


.input-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary, #111827);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.input-group label i {
  color: var(--primary-color, #3b82f6);
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group input[type="email"],
.input-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  transition: all 0.2s ease;
  background-color: white;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary, #111827);
}

.input-wrapper input {
  padding-right: 48px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input.error {
  border-color: var(--error-color, #ef4444);
}

.input-group input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ===== PASSWORD TOGGLE ===== */

.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-secondary, #6b7280);
  transition: color 0.2s ease;
  border-radius: 6px;
}

.pwd-toggle:hover {
  color: var(--primary-color, #3b82f6);
  background: var(--secondary-color, #f3f4f6);
}

.pwd-toggle i {
  font-size: 1.125rem;
}

/* ===== ERROR MESSAGES ===== */

.error-message {
  display: block;
  color: var(--error-color, #ef4444);
  font-size: 0.875rem;
  margin-top: 4px;
  min-height: 1rem;
}

#otpError {
  text-align: center;
  margin: 8px 0 12px 0;
  min-height: 1.25rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease-out;
}

#otpError::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
}

#otpError:not(:empty) {
  display: flex;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

#otpError:not(:empty)::before {
  content: '\f06a'; /* Exclamation circle icon */
}

/* ===== OTP INPUT GROUP ===== */

.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.otp-input {
  width: 40px;
  height: 48px;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  border: 2px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  background-color: white;
  color: var(--text-primary, #111827);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary-color, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #f8fafc;
}

.otp-input.filled {
  background-color: #f0f9ff;
  border-color: var(--primary-color, #3b82f6);
}

/* Remove number input arrows */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ===== PASSWORD RULES ===== */

.password-rules {
  margin-top: 12px;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9em;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.password-rules strong {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.password-rules ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.password-rules li {
  margin-bottom: 10px;
  padding-left: 32px;
  position: relative;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  color: #6c757d;
  font-size: 0.9rem;
}

.password-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.password-rules li.valid {
  color: #28a745;
}

.password-rules li.invalid {
  color: #6c757d;
}

.password-rules li.valid::before {
  content: "✓";
  background-color: #28a745;
  border-color: #28a745;
  color: white;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  line-height: 18px;
  box-shadow: 0 2px 5px rgba(40, 167, 69, 0.2);
}

/* ===== BUTTONS ===== */

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-color, #3b82f6) 0%, var(--primary-hover, #2563eb) 100%);
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.submit-btn:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.submit-btn:active:not(:disabled) {
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* ===== RESEND CONTAINER ===== */

.resend-container {
  margin-top: 16px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.resend-container p {
  color: var(--text-secondary, #6b7280);
  font-size: 0.95rem;
  margin: 0;
}

.resend-container a {
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resend-container a i {
  font-size: 0.875rem;
}

.resend-container a:hover:not(.disabled) {
  text-decoration: underline;
  color: var(--primary-hover, #2563eb);
}

.resend-container a.disabled {
  color: #9ca3af;
  cursor: not-allowed;
  text-decoration: none;
  opacity: 0.7;
  pointer-events: none;
}

#timerContainer {
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
}

/* ===== FORM LINKS ===== */

.form-links {
  text-align: center;
  padding: 16px 24px 20px 24px;
  background: var(--secondary-color, #f3f4f6);
  border-top: 1px solid var(--border-color, #e5e7eb);
}

.form-links p {
  color: var(--text-secondary, #6b7280);
  margin: 0;
  font-size: 0.95rem;
}

.form-links a {
  color: var(--primary-color, #3b82f6);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-links a:hover {
  text-decoration: underline;
  color: var(--primary-hover, #2563eb);
}

/* ===== LOADING OVERLAY ===== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay[aria-hidden="false"] {
  display: flex;
}

.loading-spinner {
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color, #e5e7eb);
  border-top-color: var(--primary-color, #3b82f6);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: var(--text-secondary, #6b7280);
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0;
}
 .input[type="text"], .input[type="number"]{
    width: 40px;
 }
/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .password-change-container {
    margin: 30px auto 16px auto;
    padding: 0 16px 16px 16px;
  }

  .page-heading {
    margin-bottom: 24px;
  }

  .page-heading h1 {
    font-size: 1.5rem;
  }

  .page-heading h1 i {
    font-size: 1.375rem;
  }

  .progress-container {
    padding: 1rem 0.75rem;
    gap: 0.5rem;
    margin-bottom: 20px;
  }

  .progress-step {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .progress-step .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .progress-step .step-label {
    font-size: 0.875rem;
  }

  .progress-step::after {
    font-size: 1rem;
    right: -0.75rem;
  }

  .page-header {
    padding: 32px 24px 24px 24px;
  }

  .header-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
  }

  .header-icon i {
    font-size: 1.75rem;
  }

  .page-header h1 {
    font-size: 1.625rem;
  }

  .page-subtitle {
    font-size: 0.95rem;
  }

  .password-form {
    padding: 20px;
  }

  .step-header {
    gap: 12px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .step-header h2 {
    font-size: 1.25rem;
  }

  .otp-input-group {
    gap: 7px;
  }

  .otp-input {
    width: 38px;
    height: 46px;
    font-size: 1.25rem;
  }

  .form-links {
    padding: 14px 20px 18px 20px;
  }
}

@media (max-width: 480px) {
  .password-change-container {
    margin: 20px auto 12px auto;
    padding: 0 12px 12px 12px;
  }

  .page-heading h1 {
    font-size: 1.375rem;
    flex-direction: column;
    gap: 8px;
  }

  .page-heading h1 i {
    font-size: 1.25rem;
  }

  .page-heading p {
    font-size: 0.875rem;
  }

  .progress-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .progress-step {
    width: 100%;
    justify-content: center;
  }

  .progress-step::after {
    content: '↓';
    position: static;
    margin-left: auto;
  }

  .progress-step:last-child::after {
    display: none;
  }

  .page-header {
    padding: 24px 20px 20px 20px;
  }

  .header-icon {
    width: 60px;
    height: 60px;
  }

  .header-icon i {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .password-form {
    padding: 20px;
  }

  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .otp-input-group {
    gap: 6px;
  }

  .otp-input {
    width: 35px;
    height: 44px;
    font-size: 1.125rem;
    border-radius: 8px;
  }

  .submit-btn {
    padding: 12px 20px;
  }
}
