/* ============================================================
   business-login.css
   Path: your-theme/assets/css/business-login.css
   ============================================================ */

.pbl-wrap {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Card */
.pbl-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e6ea;
  padding: 40px 40px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  animation: pbl-fadein 0.25s ease;
}
@keyframes pbl-fadein {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .pbl-card {
    padding: 28px 20px 24px;
  }
}

/* Header */
.pbl-header {
  margin-bottom: 28px;
}
.pbl-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111;
}
.pbl-sub {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Global messages */
.pbl-global-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 20px;
}
.pbl-global-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #15803d;
  margin-bottom: 20px;
}

/* Fields */
.pbl-field {
  margin-bottom: 18px;
}
.pbl-field label {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}
.pbl-req {
  color: #ef4444;
  margin-left: 2px;
}
.pbl-forgot-link {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  margin-left: auto;
}
.pbl-forgot-link:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

.pbl-field input {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 11px 14px;
    line-height: 1.5;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.pbl-field input::placeholder {
  color: #9ca3af;
}
.pbl-field input:focus {
  border-color: #b5d400;
  box-shadow: 0 0 0 3px rgba(181, 212, 0, 0.15);
}
.pbl-field input.pbl-has-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Password wrapper (input + toggle button) */
.pbl-password-wrap {
  position: relative;
}
.pbl-password-wrap input {
  padding-right: 44px;
}
.pbl-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.pbl-toggle-pw:hover {
  color: #374151;
}
.pbl-eye {
  width: 18px;
  height: 18px;
}

/* Remember me */
.pbl-field-remember {
  margin-bottom: 24px;
}
.pbl-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}
.pbl-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #BFF100;
  cursor: pointer;
  flex-shrink: 0;
      padding: 0;
    border-radius: 5px;
        appearance: auto;
}

/* Errors */
.pbl-error {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
  position: absolute;
}

/* Buttons */
.pbl-btn {
  padding: 12px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    background 0.2s,
    transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pbl-btn:active {
  transform: scale(0.97);
}
.pbl-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pbl-btn-primary {
     background: #1A2B1C;
    color: #fff;
}
.pbl-btn-primary:hover {
  background: #2e3f2e;
}
.pbl-btn-full {
  width: 100%;
      padding: 10px 24px;
    border-radius: 100px;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Spinner */
.pbl-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pbl-spin 0.7s linear infinite;
}
@keyframes pbl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Register footer */
.pbl-register-footer {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin: 20px 0 0;
}
.pbl-register-footer a {
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}
.pbl-register-footer a:hover {
  text-decoration: underline;
}

/* Divider */
.pbl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.pbl-divider::before,
.pbl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.pbl-divider span {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}
