/* Password Reset Page Styles */
:root {
  --primary-color: #7ed957;
  --primary-light: #a5e685;
  --primary-dark: #5eac37;
  --header-color: #2c5d5d;
  --background-color: #c8e6c8;
  --card-bg-color: #f8fdf8;
  --text-color: #333333;
  --text-light: #666666;
  --error-color: #e74c3c;
  --info-color: #3498db;
  --border-radius: 12px;
  --box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  background-color: var(--background-color);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header Styles */
.header {
  background-color: var(--header-color);
  color: white;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Main page container - CENTERED */
.page_lost_password {
  max-width: 500px;
  margin: 6rem auto 2rem;
  padding: 2.5rem;
  background: var(--card-bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(157, 253, 116, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page_lost_password h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.2;
  width: 100%;
}

.page_lost_password h1::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.page_lost_password > p {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}

/* Form Styles - CENTERED */
.cmp_form.lost_password {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pkp_form_error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--error-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: var(--error-color);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.pkp_form_error::before {
  content: "⚠";
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Fields Container - PERFECTLY CENTERED */
.fields {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

/* Email Field - CENTERED */
.email {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.email label {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  width: 100%;
  align-items: center;
}

.email .label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
  flex-wrap: wrap;
}

.required {
  color: var(--error-color);
  font-weight: bold;
}

.pkp_screen_reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* EMAIL INPUT - PERFECTLY CENTERED */
.email input[type="email"] {
  padding: 1rem 1.25rem;
  border: 2px solid rgba(126, 217, 87, 0.25);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--card-bg-color);
  width: 100%;
  max-width: 350px;
  box-sizing: border-box;
  color: var(--text-color);
  text-align: center;
}

.email input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.15);
  background: #ffffff;
}

.email input[type="email"]:hover {
  border-color: var(--primary-light);
  background: #ffffff;
}

.email input[type="email"]:invalid {
  border-color: var(--error-color);
}

.email input[type="email"]:invalid:focus {
  border-color: var(--error-color);
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Buttons Container - CENTERED */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
}

/* Submit Button - PERFECTLY CENTERED */
.submit {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-width: 250px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.submit:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(126, 217, 87, 0.4);
}

.submit:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(126, 217, 87, 0.3);
}

.submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.3);
}

/* Register Link - CENTERED */
.register {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  text-align: center;
  display: inline-block;
}

.register:hover {
  color: var(--primary-color);
  background: rgba(126, 217, 87, 0.1);
  text-decoration: underline;
}

.register:focus {
  outline: none;
  color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(126, 217, 87, 0.3);
}

/* Loading State */
.submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Breadcrumbs styling if needed */
.cmp_breadcrumbs {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

/* Responsive Design */
@media (max-width: 640px) {
  .page_lost_password {
    margin: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
  }
  
  .page_lost_password h1 {
    font-size: 1.5rem;
  }
  
  .submit {
    min-width: 100%;
    max-width: 300px;
  }
  
  .email input[type="email"] {
    max-width: 100%;
  }
  
  .fields {
    max-width: 100%;
    gap: 1.5rem;
  }
  
  .buttons {
    gap: 1rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --header-color: #1a3a3a;
    --background-color: #2a4a2a;
    --card-bg-color: #3a5a3a;
    --text-color: #e8f5e8;
    --text-light: #b8d4b8;
  }
  
  .page_lost_password {
    border-color: rgba(126, 217, 87, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  .email input[type="email"] {
    background: #2d4d2d;
    border-color: rgba(126, 217, 87, 0.4);
    color: var(--text-color);
  }
  
  .email input[type="email"]:focus,
  .email input[type="email"]:hover {
    background: #354535;
  }
  
  .register:hover {
    background: rgba(126, 217, 87, 0.15);
  }
  
  .pkp_form_error {
    background: rgba(231, 76, 60, 0.2);
    border-color: var(--error-color);
  }
}

/* Animation for form appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cmp_form.lost_password {
  animation: fadeInUp 0.5s ease-out;
}

/* Focus visible for better accessibility */
.submit:focus-visible,
.register:focus-visible,
.email input[type="email"]:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}