/**
 * B2B Login Page - Full Screen Design
 */

/* Full page overlay with green background (modal version) */
.b2b-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(151, 201, 100, 0.55);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

body.b2b-login-active {
  overflow: hidden;
}

/* Standalone login page (non-modal) */
.b2b-login-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Remove background from content block on login page */
.path-b2b-login #block-dehoopdrukkerij-content,
.path-b2b-login .block-dehoopdrukkerij-content {
  background: transparent !important;
}

/* Logo */
.b2b-login-logo {
  margin-bottom: 30px;
}

.b2b-login-logo img {
  max-width: 250px;
  height: auto;
}

/* Login box */
.b2b-login-modal {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.b2b-login-modal h2 {
  margin: 0 0 25px 0;
  font-size: 1.5rem;
  color: #24327e;
  font-family: "Crete Round", serif;
  font-weight: 400;
  line-height: 1.2;
}

/* Form */
.b2b-form p {
  margin: 0 0 20px 0;
  color: #555;
  line-height: 1.5;
}

.b2b-form-row {
  margin-bottom: 15px;
}

.b2b-form input[type="email"],
.b2b-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #164194;
  border-radius: 4px;
  font-size: 1rem;
  font-family: "Noto Sans", sans-serif;
  background: #eaf7ff;
  color: #000000;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}

.b2b-form input:focus {
  border-color: #164194;
  background: transparent;
  outline: none;
}

/* OTP input */
#b2b-otp {
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.4em;
  font-family: monospace;
  padding: 16px;
}

/* Submit button */
.b2b-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: #3c98fc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: "Noto Sans", sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.b2b-submit-btn:hover {
  background: #ee6e18;
}

.b2b-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Message */
.b2b-message {
  display: none;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: left;
  font-size: 0.95rem;
}

.b2b-message.error {
  display: block;
  background: #ffe6e6;
  border: 1px solid #ff9999;
  color: #cc0000;
}

.b2b-message.success {
  display: block;
  background: #e6ffe6;
  border: 1px solid #99ff99;
  color: #006600;
}

/* Klant info in OTP form */
.b2b-klant-info {
  background: #f0f7ff;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  color: #164194;
}

/* Back link */
.b2b-back-link {
  margin-top: 10px;
}

.b2b-back-link a {
  color: #666;
  font-size: 0.9rem;
  text-decoration: underline;
}

.b2b-back-link a:hover {
  color: #3c98fc;
}

/* Honeypot field - hidden from humans */
.b2b-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Noscript warning */
.b2b-noscript-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 480px) {
  .b2b-login-modal {
    padding: 30px 20px;
  }

  .b2b-login-logo img {
    max-width: 200px;
  }

  .b2b-login-modal h2 {
    font-size: 1.3rem;
  }

  .b2b-login-page {
    min-height: auto;
    padding: 30px 15px;
  }
}
