/**
 * Custom WooCommerce Form Styling
 * Lost Password & Reset Password Forms
 */

/* ========================================
   Lost Password Form
   ======================================== */
.masterstudy-enterprise-modal {
  display: none;
}
button.woocommerce-Button.button.pijaracademy-reset-submit {
  margin-top: 20px;
}
.woocommerce-ResetPassword.lost_reset_password {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 3rem !important;
  max-width: 420px !important;
  margin: 2rem auto !important;
  border: none !important;
}

.woocommerce-ResetPassword h2 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
  color: #1a1a1a !important;
}

/* Description Text */
.woocommerce-ResetPassword > p:first-of-type {
  color: #666 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin-bottom: 2rem !important;
  background: #f0f4ff !important;
  border-left: 4px solid #0066cc !important;
  padding: 1rem !important;
  border-radius: 6px !important;
}

/* Form Rows */
.woocommerce-ResetPassword .woocommerce-form-row,
.woocommerce-ResetPassword .form-row {
  margin-bottom: 1.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  clear: none !important;
}

.woocommerce-ResetPassword .woocommerce-form-row label,
.woocommerce-ResetPassword .form-row label {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  display: block !important;
  margin-bottom: 0 !important;
}

/* Input Fields */
.woocommerce-ResetPassword .woocommerce-Input--text,
.woocommerce-ResetPassword .input-text,
.woocommerce-ResetPassword input[type="text"],
.woocommerce-ResetPassword input[type="email"],
.woocommerce-ResetPassword input[type="password"] {
  padding: 0.85rem 1rem !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  font-family: inherit !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
}

.woocommerce-ResetPassword .woocommerce-Input--text:focus,
.woocommerce-ResetPassword .input-text:focus,
.woocommerce-ResetPassword input[type="text"]:focus,
.woocommerce-ResetPassword input[type="email"]:focus,
.woocommerce-ResetPassword input[type="password"]:focus {
  outline: none !important;
  border-color: #0066cc !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1) !important;
}

.woocommerce-ResetPassword .woocommerce-Input--text::placeholder,
.woocommerce-ResetPassword .input-text::placeholder,
.woocommerce-ResetPassword input[type="password"]::placeholder {
  color: #999 !important;
}

/* Custom password toggle for reset password page. */
.woocommerce-ResetPassword .pijaracademy-password-field {
  display: block !important;
  position: relative !important;
  width: 100% !important;
}

.woocommerce-ResetPassword .pijaracademy-password-field .input-text {
  padding-right: 5.5rem !important;
}

.woocommerce-ResetPassword .pijaracademy-password-toggle {
  position: absolute !important;
  top: 50% !important;
  right: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0066cc !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  transform: translateY(-50%) !important;
  z-index: 3 !important;
  opacity: 1 !important;
  visibility: visible !important;
  width: auto !important;
  text-decoration: none !important;
}

.woocommerce-ResetPassword .pijaracademy-password-toggle:hover,
.woocommerce-ResetPassword .pijaracademy-password-toggle:focus-visible {
  color: #0052a3 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Prevent WooCommerce auto-injected toggle from showing on this custom template. */
.woocommerce-ResetPassword .show-password-input {
  display: none !important;
}

/* Clear div - HANYA hide jika benar-benar div kosong, JANGAN hide form element */
.woocommerce-ResetPassword > .clear {
  display: none !important;
}

/* Ensure all form elements visible */
.woocommerce-ResetPassword input[type="checkbox"],
.woocommerce-ResetPassword input[type="radio"],
.woocommerce-ResetPassword label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Submit Button - ALWAYS visible, not just on hover */
.woocommerce .woocommerce-ResetPassword button.woocommerce-Button,
.woocommerce .woocommerce-ResetPassword button.button,
.woocommerce .woocommerce-ResetPassword input[type="submit"],
.woocommerce .woocommerce-ResetPassword .pijaracademy-reset-submit {
  background: #0066cc !important;
  background-color: #0066cc !important;
  color: white !important;
  padding: 1rem !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  width: 100% !important;
  box-shadow: none !important;
  text-decoration: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.woocommerce .woocommerce-ResetPassword button.woocommerce-Button:hover,
.woocommerce .woocommerce-ResetPassword button.button:hover,
.woocommerce .woocommerce-ResetPassword input[type="submit"]:hover,
.woocommerce .woocommerce-ResetPassword .pijaracademy-reset-submit:hover {
  background: #0052a3 !important;
  background-color: #0052a3 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 102, 204, 0.25) !important;
}

.woocommerce .woocommerce-ResetPassword button.woocommerce-Button:active,
.woocommerce .woocommerce-ResetPassword button.button:active,
.woocommerce .woocommerce-ResetPassword input[type="submit"]:active,
.woocommerce .woocommerce-ResetPassword .pijaracademy-reset-submit:active {
  transform: translateY(0) !important;
}

/* Nonce field */
.woocommerce-ResetPassword input[type="hidden"] {
  display: none !important;
}

/* Back to login link */
.woocommerce-ResetPassword > div:last-child {
  text-align: center !important;
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid #f0f0f0 !important;
}

.woocommerce-ResetPassword > div:last-child p {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin: 0 !important;
}

.woocommerce-ResetPassword > div:last-child a {
  color: #0066cc !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.woocommerce-ResetPassword > div:last-child a:hover {
  color: #0052a3 !important;
  text-decoration: underline !important;
}

/* ========================================
   Parent Row/Col Grid Override (ONLY for Lost Password Form content)
   ======================================== */

/* Only target .row DIRECTLY inside lost password form wrapper, not anywhere else */
.post_type_exist.clearfix
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row,
.post-inner .woocommerce .woocommerce-ResetPassword.lost_reset_password .row,
main .woocommerce .woocommerce-ResetPassword.lost_reset_password .row {
  margin: 0 auto !important;
  max-width: 100% !important;
}

.post_type_exist.clearfix
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row
  .col-md-6,
.post_type_exist.clearfix
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row
  .col-sm-12,
.post-inner
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row
  .col-md-6,
.post-inner
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row
  .col-sm-12,
main .woocommerce .woocommerce-ResetPassword.lost_reset_password .row .col-md-6,
main
  .woocommerce
  .woocommerce-ResetPassword.lost_reset_password
  .row
  .col-sm-12 {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 640px) {
  .woocommerce-ResetPassword.lost_reset_password {
    padding: 2rem !important;
    margin: 1.5rem auto !important;
  }

  .woocommerce-ResetPassword h2 {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .woocommerce-ResetPassword.lost_reset_password {
    padding: 1.5rem !important;
    margin: 1rem !important;
    border-radius: 8px !important;
  }

  .woocommerce-ResetPassword h2 {
    font-size: 1.35rem !important;
  }

  .woocommerce-ResetPassword button.woocommerce-Button,
  .woocommerce-ResetPassword button.button,
  .woocommerce-ResetPassword input[type="submit"] {
    padding: 0.85rem !important;
    font-size: 0.95rem !important;
  }

  .woocommerce-ResetPassword > p:first-of-type {
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }
}

/* ========================================
   WooCommerce Default Override
   ======================================== */

/* Remove default WooCommerce button styles */
.woocommerce button.button:not(.pijaracademy-reset-submit),
.woocommerce input[type="submit"]:not(.pijaracademy-reset-submit) {
  background: none !important;
}

/* Ensure form elements are visible */
.woocommerce-ResetPassword input::-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
}

/* =========================================================
   Reset Password Preview Parity (Exact visual replica)
   Scoped only to custom reset password template wrapper.
   ========================================================= */
.pijaracademy-reset-password-shell * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.pijaracademy-reset-password-shell {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.pijaracademy-reset-password-shell .container {
  width: 100%;
  max-width: 420px;
}

.pijaracademy-reset-password-shell .form-wrapper {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem;
}

.pijaracademy-reset-password-shell .form-header {
  margin-bottom: 2.5rem;
}

.pijaracademy-reset-password-shell .form-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.pijaracademy-reset-password-shell .form-header p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

.pijaracademy-reset-password-shell .pijaracademy-reset-password-form {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.pijaracademy-reset-password-shell .form-group {
  margin-bottom: 1.75rem;
}

.pijaracademy-reset-password-shell .form-group:last-of-type {
  margin-bottom: 2rem;
}

.pijaracademy-reset-password-shell .form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.65rem;
}

.pijaracademy-reset-password-shell .form-group label .required {
  color: #e74c3c;
  margin-left: 0.25rem;
}

.pijaracademy-reset-password-shell .form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: #1a1a1a;
  transition: all 0.3s ease;
  background: #ffffff;
}

.pijaracademy-reset-password-shell .form-group input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.pijaracademy-reset-password-shell .form-group input::placeholder {
  color: #999;
}

.pijaracademy-reset-password-shell .password-requirements {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.pijaracademy-reset-password-shell .requirements-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pijaracademy-reset-password-shell .requirements-list {
  list-style: none;
}

.pijaracademy-reset-password-shell .requirements-list li {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.4;
}

.pijaracademy-reset-password-shell .requirements-list li:last-child {
  margin-bottom: 0;
}

.pijaracademy-reset-password-shell .requirements-list li::before {
  content: "\2022";
  position: absolute;
  left: 0.5rem;
  color: #0066cc;
  font-weight: 700;
}

.pijaracademy-reset-password-shell .requirements-list li.met {
  color: #27ae60;
}

.pijaracademy-reset-password-shell .requirements-list li.met::before {
  color: #27ae60;
}

.pijaracademy-reset-password-shell .strength-indicator {
  margin-top: 0.75rem;
}

.pijaracademy-reset-password-shell .strength-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pijaracademy-reset-password-shell .strength-bar {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.pijaracademy-reset-password-shell .strength-fill {
  height: 100%;
  background: #cbd5e0;
  border-radius: 2px;
  transition: all 0.3s ease;
  width: 0%;
}

.pijaracademy-reset-password-shell .strength-fill.weak {
  width: 33%;
  background: #e74c3c;
}

.pijaracademy-reset-password-shell .strength-fill.fair {
  width: 66%;
  background: #f39c12;
}

.pijaracademy-reset-password-shell .strength-fill.strong {
  width: 100%;
  background: #27ae60;
}

.pijaracademy-reset-password-shell .strength-text {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.35rem;
}

/* Hide default WooCommerce password strength/hint messages under the field.
   We use the custom requirements + strength UI from the preview design. */
.pijaracademy-reset-password-shell .woocommerce-password-strength,
.pijaracademy-reset-password-shell .woocommerce-password-hint {
  display: none !important;
}

/* Hide legacy WooCommerce notices on this page; modal is the only feedback UI. */
.pijaracademy-reset-password-shell ~ .woocommerce-notices-wrapper,
.pijaracademy-reset-password-shell .woocommerce-notices-wrapper,
.pijaracademy-reset-password-shell .woocommerce-error,
.pijaracademy-reset-password-shell .woocommerce-message,
.pijaracademy-reset-password-shell .woocommerce-info {
  display: none !important;
}

.pijaracademy-reset-password-shell .form-actions {
  margin-top: 2.5rem;
}

.pijaracademy-reset-password-shell .btn {
  width: 100%;
  padding: 1rem;
  background: #0066cc !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  display: block;
  opacity: 1;
  visibility: visible;
}

.pijaracademy-reset-password-shell .btn:hover {
  background: #0052a3 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 102, 204, 0.25);
}

.pijaracademy-reset-password-shell .btn:active {
  transform: translateY(0);
}

.pijaracademy-reset-password-shell .password-field-wrapper {
  position: relative;
}

.pijaracademy-reset-password-shell .password-field-wrapper input {
  padding-right: 6.25rem;
}

.pijaracademy-reset-password-shell .password-toggle {
  position: absolute;
  right: 1rem;
  top: 6px;
  background: none !important;
  border: none !important;
  color: #0066cc !important;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}

.pijaracademy-reset-password-shell .password-toggle:hover {
  color: #0052a3 !important;
}

.pijaracademy-reset-password-shell .password-toggle:focus {
  outline: none;
  color: #0052a3 !important;
}

.pijaracademy-reset-password-shell .form-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.pijaracademy-reset-password-shell .form-footer p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.pijaracademy-reset-password-shell .form-footer a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pijaracademy-reset-password-shell .form-footer a:hover {
  color: #0052a3;
  text-decoration: underline;
}

/* Modal Styles */
.pijaracademy-reset-password-shell .pijaracademy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 1rem;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
}

.pijaracademy-reset-password-shell .pijaracademy-modal.active {
  display: flex;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  animation: pijaracademySlideUp 0.3s ease;
}

@keyframes pijaracademySlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pijaracademy-reset-password-shell .pijaracademy-modal-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-title-section {
  flex: 1;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-message {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 1.5rem 0 2rem 0;
  white-space: pre-line;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-btn {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-btn-primary {
  background: #0066cc;
  color: white;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-btn-primary:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.pijaracademy-reset-password-shell .pijaracademy-modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: color 0.2s ease;
}

.pijaracademy-reset-password-shell .pijaracademy-modal-close:hover {
  color: #333;
}

@media (max-width: 640px) {
  .pijaracademy-reset-password-shell .form-wrapper {
    padding: 2rem;
  }

  .pijaracademy-reset-password-shell .form-header h2 {
    font-size: 1.5rem;
  }

  .pijaracademy-reset-password-shell .form-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .pijaracademy-reset-password-shell {
    padding: 1rem;
  }

  .pijaracademy-reset-password-shell .form-wrapper {
    padding: 1.5rem;
  }

  .pijaracademy-reset-password-shell .form-header h2 {
    font-size: 1.35rem;
  }

  .pijaracademy-reset-password-shell .form-header {
    margin-bottom: 1.75rem;
  }

  .pijaracademy-reset-password-shell .btn {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .pijaracademy-reset-password-shell .password-requirements {
    padding: 0.75rem;
  }

  .pijaracademy-reset-password-shell .requirements-label {
    font-size: 0.8rem;
  }

  .pijaracademy-reset-password-shell .requirements-list li {
    font-size: 0.8rem;
  }

  .pijaracademy-reset-password-shell .pijaracademy-modal-content {
    padding: 1.5rem;
  }

  .pijaracademy-reset-password-shell .pijaracademy-modal-title {
    font-size: 1.1rem;
  }

  .pijaracademy-reset-password-shell .pijaracademy-modal-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
