/* ==========================================================================
   WC Wholesale Registration - Login Form Styles
   ========================================================================== */

.wcwrp-login-wrap {
  width: 100%;
  max-width: 440px;
  margin: 60px auto;
  padding: 0 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcwrp-login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  overflow: hidden;
}

.wcwrp-login-header {
  background: #fff;
  color: #1f2937;
  padding: 32px 36px 4px;
  text-align: left;
}

.wcwrp-login-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.wcwrp-login-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* Login form body */
#wcwrp-login-form {
  padding: 28px 36px 20px;
}

/* Inherit shared field styles from register.css when both loaded */
/* These are duplicated for standalone use */
.wcwrp-login-card .wcwrp-field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.wcwrp-login-card .wcwrp-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wcwrp-login-card .wcwrp-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}

.wcwrp-login-card .wcwrp-field input:focus {
  outline: none;
  border-color: #4e8a2e;
  box-shadow: 0 0 0 3px rgba(78, 138, 46, 0.12);
}

.wcwrp-forgot-link {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}
.wcwrp-forgot-link:hover { color: #4e8a2e; }

.wcwrp-login-footer {
  padding: 12px 36px 24px;
  text-align: center;
  border-top: 1px solid #f3f4f6;
  font-size: 14px;
  color: #6b7280;
}

.wcwrp-login-footer a {
  color: #4e8a2e;
  font-weight: 600;
  text-decoration: none;
}

/* Waiting screen */
.wcwrp-waiting-wrap,
.wcwrp-rejected-wrap {
  max-width: 500px;
  margin: 60px auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcwrp-waiting-card,
.wcwrp-rejected-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 48px 40px;
  text-align: center;
}

.wcwrp-waiting-icon,
.wcwrp-rejected-icon {
  margin-bottom: 24px;
}

.wcwrp-waiting-icon svg,
.wcwrp-rejected-icon svg {
  width: 72px;
  height: 72px;
}

.wcwrp-spinner-ring {
  animation: wcwrp-rotate 3s linear infinite;
  transform-origin: center;
}

@keyframes wcwrp-rotate {
  to { transform: rotate(360deg); }
}

.wcwrp-waiting-card h2,
.wcwrp-rejected-card h2 {
  font-size: 22px;
  color: #1f2937;
  margin: 0 0 12px;
}

.wcwrp-waiting-intro {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.wcwrp-waiting-card p,
.wcwrp-rejected-card p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.wcwrp-status-badge {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.wcwrp-badge--large {
  font-size: 13px;
  padding: 7px 16px;
}

.wcwrp-waiting-details {
  background: #f9fafb;
  border-radius: 8px;
  padding: 14px 18px;
  text-align: left;
  margin: 16px 0;
  font-size: 14px;
  color: #374151;
}

.wcwrp-waiting-details p { margin: 4px 0; color: #374151; }

.wcwrp-waiting-note {
  font-size: 13px;
  color: #9ca3af;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px 16px;
  text-align: left;
  line-height: 1.5;
}

.wcwrp-waiting-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.wcwrp-refresh-status {
  display: inline-flex;
  align-items: center;
}

.wcwrp-rejected-reason {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 14px 18px;
  text-align: left;
  margin: 16px 0;
}

.wcwrp-rejected-reason h4 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wcwrp-rejected-reason p { margin: 0; font-size: 14px; color: #374151; }

.wcwrp-rejected-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ==========================================================================
   My Account dashboard (approved members)
   ========================================================================== */
.wcwrp-account-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
}

.wcwrp-account-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #2f5a1c 0%, #4e8a2e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(47, 90, 28, 0.18);
}

.wcwrp-account-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  border: 3px solid rgba(255,255,255,0.4);
}

.wcwrp-account-info {
  flex: 1 1 auto;
  min-width: 0;
}

.wcwrp-account-info h2 {
  margin: 8px 0 2px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.wcwrp-account-info p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.wcwrp-account-info .wcwrp-badge--approved {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.wcwrp-account-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.wcwrp-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.wcwrp-account-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px 24px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.wcwrp-account-section h3 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #2f5a1c;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f8e9;
}

.wcwrp-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
}

.wcwrp-detail-row:last-of-type { border-bottom: none; }

.wcwrp-detail-label {
  color: #6b7280;
  font-weight: 500;
}

.wcwrp-detail-value {
  color: #1f2937;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.wcwrp-address-block {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 16px;
}

.wcwrp-address-block address { font-style: normal; }

.wcwrp-address-empty {
  color: #9ca3af;
  font-style: italic;
  margin: 0;
}

.wcwrp-account-section .wcwrp-btn {
  margin-top: auto;
}

@media (max-width: 600px) {
  .wcwrp-account-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .wcwrp-account-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .wcwrp-login-wrap { margin: 30px auto; }
  #wcwrp-login-form { padding: 22px 22px 16px; }
  .wcwrp-login-header { padding: 28px 22px 4px; }
  .wcwrp-login-footer { padding: 12px 22px 20px; }
  .wcwrp-waiting-card, .wcwrp-rejected-card { padding: 32px 24px; }
}
