/* Modern Reset Password Design - Theme-Aware */
:root {
  --reset-primary: var(--highlight, #3b82f6);
  --reset-primary-hover: var(--highlight-hover, #2563eb);
  --reset-bg: var(--primary-bg, #0f172a);
  --reset-surface: var(--card-bg, #1e293b);
  --reset-secondary: var(--secondary-bg, #1e293b);
  --reset-tertiary: var(--tertiary-bg, #334155);
  --reset-text-primary: var(--text-primary, #f1f5f9);
  --reset-text-secondary: var(--text-secondary, #94a3b8);
  --reset-text-muted: var(--text-muted, #64748b);
  --reset-success: var(--success, #10b981);
  --reset-danger: var(--danger, #ef4444);
  --reset-warning: var(--warning, #f59e0b);
  --reset-border: var(--border-color, #334155);
  --reset-border-light: var(--border-light, rgba(59, 130, 246, 0.2));
  --reset-radius: var(--radius-md, 12px);
  --reset-radius-lg: var(--radius-lg, 16px);
  --reset-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
  --reset-shadow-lg: var(--shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.15));
  --reset-shadow-xl: var(--shadow-xl, 0 20px 25px rgba(0, 0, 0, 0.2));
}

/* Remove modal backdrop */
.modal-backdrop.fade.show {
    display: none;
}

/* Modern Reset Password Layout */
.resetpassword-wrapper {
  background: var(--reset-bg);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--reset-text-primary);
  position: relative;
  overflow-x: hidden;
}

.resetpassword-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.resetpassword-container {
  position: relative;
  z-index: 2;
  padding: 2rem 1rem;
}

/* Reset Password Card */
.resetpassword-card {
  background: var(--reset-surface);
  border-radius: var(--reset-radius-lg);
  box-shadow: var(--reset-shadow-xl);
  border: 1px solid var(--reset-border);
  overflow: hidden;
  backdrop-filter: blur(20px);
  max-width: 600px;
  margin: 0 auto;
}

/* Header Section */
.resetpassword-header {
  background: linear-gradient(135deg, var(--reset-secondary) 0%, var(--reset-surface) 100%);
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--reset-border);
  position: relative;
}

.resetpassword-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--reset-primary) 0%, var(--reset-primary-hover) 100%);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--reset-primary) 0%, var(--reset-primary-hover) 100%);
  border-radius: var(--reset-radius);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--reset-shadow);
}

.brand-content {
  flex: 1;
}

.brand-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--reset-text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--reset-text-secondary);
  margin: 0;
  font-weight: 500;
}

/* Body Section */
.resetpassword-body {
  padding: 2.5rem 2rem;
}

.form-step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--reset-text-primary);
  margin: 0 0 0.5rem 0;
}

.step-description {
  font-size: 0.95rem;
  color: var(--reset-text-secondary);
  margin: 0;
}

/* Modern Alert System */
.alert-modern {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--reset-radius);
  margin-bottom: 1.5rem;
  position: relative;
  backdrop-filter: blur(10px);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--reset-danger);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--reset-success);
}

.alert-icon {
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.alert-content {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
}

.alert-close {
  background: none;
  border: none;
  color: currentColor;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--reset-radius);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.alert-close:hover {
  opacity: 1;
}

/* Modern Form System */
.resetpassword-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-modern {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--reset-text-primary);
  margin: 0;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  z-index: 2;
  color: var(--reset-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.form-control-modern {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--reset-secondary);
  border: 1px solid var(--reset-border);
  border-radius: var(--reset-radius);
  color: var(--reset-text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: var(--reset-shadow);
  backdrop-filter: blur(10px);
}

.form-control-modern:focus {
  outline: none;
  border-color: var(--reset-primary);
  background: var(--reset-surface);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--reset-shadow-lg);
}

.form-control-modern::placeholder {
  color: var(--reset-text-muted);
  opacity: 0.8;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.select-icon {
  position: absolute;
  left: 1rem;
  z-index: 2;
  color: var(--reset-text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.select-arrow {
  position: absolute;
  right: 1rem;
  z-index: 2;
  color: var(--reset-text-muted);
  font-size: 0.8rem;
  pointer-events: none;
}

select.form-control-modern {
  appearance: none;
  background-image: none;
  padding-right: 3rem;
  cursor: pointer;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--reset-text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--reset-radius);
  transition: all 0.2s ease;
}

.password-toggle:hover {
  color: var(--reset-primary);
  background: rgba(59, 130, 246, 0.1);
}

/* Modern Button */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--reset-radius);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn-primary-modern {
  background: linear-gradient(135deg, var(--reset-primary) 0%, var(--reset-primary-hover) 100%);
  color: white;
  box-shadow: var(--reset-shadow);
}

.btn-primary-modern:hover {
  background: linear-gradient(135deg, var(--reset-primary-hover) 0%, var(--reset-primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--reset-shadow-lg);
}

.btn-primary-modern:active {
  transform: translateY(0);
  box-shadow: var(--reset-shadow);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Captcha Wrapper */
.captcha-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

/* Footer Section */
.resetpassword-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--reset-border);
  background: var(--reset-secondary);
  text-align: center;
}

.back-to-login {
  display: flex;
  justify-content: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--reset-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--reset-radius);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--reset-primary);
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

/* Platforms Section */
.platforms-section {
  background: var(--reset-bg);
  padding: 4rem 0;
  position: relative;
}

.platforms-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.platforms-header {
  text-align: center;
  margin-bottom: 3rem;
}

.platforms-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--reset-text-primary);
  margin: 0 0 1rem 0;
}

.platforms-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--reset-primary) 0%, var(--reset-primary-hover) 100%);
  margin: 0 auto;
  border-radius: 2px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.platform-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--reset-surface);
  border: 1px solid var(--reset-border);
  border-radius: var(--reset-radius);
  color: var(--reset-text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: var(--reset-shadow);
  aspect-ratio: 1;
}

.platform-item:hover {
  transform: translateY(-4px);
  color: var(--reset-primary);
  border-color: var(--reset-border-light);
  box-shadow: var(--reset-shadow-lg);
  background: var(--reset-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .resetpassword-container {
    padding: 1rem;
  }
  
  .resetpassword-header {
    padding: 2rem 1.5rem;
  }
  
  .brand-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .brand-icon {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
  }
  
  .brand-title {
    font-size: 1.75rem;
  }
  
  .resetpassword-body {
    padding: 2rem 1.5rem;
  }
  
  .resetpassword-footer {
    padding: 1.5rem;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 1rem;
  }
  
  .platform-item {
    padding: 1rem;
    font-size: 1.25rem;
  }
  
  .platforms-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .resetpassword-header {
    padding: 1.5rem 1rem;
  }
  
  .brand-title {
    font-size: 1.5rem;
  }
  
  .brand-subtitle {
    font-size: 0.9rem;
  }
  
  .resetpassword-body {
    padding: 1.5rem 1rem;
  }
  
  .step-title {
    font-size: 1.25rem;
  }
  
  .platforms-section {
    padding: 3rem 0;
  }
  
  .platforms-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .platform-item {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .platforms-title {
    font-size: 1.5rem;
  }
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --reset-primary: #0066CC;
    --reset-primary-hover: #004499;
    --reset-border: #666666;
  }
  
  .resetpassword-card {
    border-width: 2px;
  }
  
  .form-control-modern {
    border-width: 2px;
  }
}

/* Focus management */
.form-control-modern:focus,
.btn-modern:focus,
.back-link:focus,
.password-toggle:focus,
.alert-close:focus {
  outline: 2px solid var(--reset-primary);
  outline-offset: 2px;
}

/* Loading states */
.btn-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.form-control-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

