/* 
 * Password Reset Page Specific Styles
 * Focused styling for the two-step password reset process
 * Security-conscious design with clear user feedback
 */

/* Centered reset container with optimal width for form focus */
.main-reset {
  max-width: 720px;
  margin: 28px auto;
  padding: 18px;
}

/* Brand header consistent with login/register pages */
.header-brand { 
  display:flex; 
  align-items:center; 
  gap:12px; 
  margin-bottom:16px; 
}

/* Logo styling matching other authentication pages */
.logo-pill { 
  width:56px; 
  height:56px; 
  border-radius:10px; 
  background:linear-gradient(135deg,var(--accent),#7dd3fc); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  font-weight:700; 
  color:var(--accent-contrast); 
}

/* Form field spacing for clear visual hierarchy */
.field { 
  margin-bottom:16px; 
}

.field label { 
  display:block; 
  margin-bottom:6px; 
  font-weight:700; 
  color:var(--text); 
}

/* Help text for password requirements */
.field small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Form actions with flexible button layout */
.form-actions { 
  display:flex; 
  gap:12px; 
  align-items:center; 
  margin-top:20px;
  flex-wrap: wrap;
}

/* Success message styling for positive feedback */
.message-list {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.message {
  color: var(--success);
  font-weight: 500;
}

/* Error message styling consistent with other pages */
.errlist { 
  color:var(--danger); 
  background:rgba(239,68,68,0.06); 
  padding:10px; 
  border-radius:8px; 
  border:1px solid rgba(239,68,68,0.12); 
  margin-bottom: 16px;
}

/* Development feature styling - should be removed in production */
.dev-reset-link {
  margin-top: 20px;
  padding: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
}

.dev-reset-link strong {
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.dev-reset-link a {
  color: var(--accent);
  word-break: break-all; /* Handle long URLs on small screens */
}

.dev-reset-link small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: italic;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   Touch-friendly interface for password reset on mobile devices
   ========================================================================== */
@media (max-width: 720px) {
  .main-reset {
    margin: 20px auto;
    padding: 12px;
  }
  
  .header-brand {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .btn-ghost {
    text-align: center;
  }
}

/* Footer separation from reset form content */
.main-reset footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Theme-Specific Adjustments
   Ensure consistent appearance across all theme variants
   ========================================================================== */

/* Dark theme development link adjustments */
html[data-theme="dark"] .dev-reset-link,
html[data-theme="oled"] .dev-reset-link {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Dark theme success message adjustments */
html[data-theme="dark"] .message-list,
html[data-theme="oled"] .message-list {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
}

/* Retro theme development link styling */
html[data-theme="retro"] .dev-reset-link {
  background: rgba(181, 118, 45, 0.1);
  border-color: rgba(181, 118, 45, 0.3);
}

/* Retro theme success message styling */
html[data-theme="retro"] .message-list {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
}