html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body.cglp {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
}

/* Layout */
.cglp-wrap {
  display: flex;
  min-height: 100vh;
}
.cglp-left {
  flex: 2 1 0%;
}
.cglp-right {
  flex: 1 1 0%;
  background: var(--cglp-right-bg, #ffffff);
  color: var(--cglp-right-text, #191919);
  font-size: var(--cglp-font-size, 16px);
  font-family: var(--cglp-font-family, inherit);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 48px 24px;
}

/* Card on the right column */
.cglp-card {
  width: 100%;
  max-width: 420px;
  background: var(--cglp-card-bg, #ffffff);
  border-radius: var(--cglp-card-radius, 16px);
  padding: 28px;
  box-shadow: none; /* explicit per request */
}
.cglp-logo {
  display: block;
  width: 180px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 16px;
}
.cglp-title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.4rem;
}
.cglp-intro {
  text-align: center;
  margin: 8px 0 18px;
}

/* Ensure SWG standard button visible */
.cglp-intro button[swg-standard-button] {
  display: inline-block;
  min-width: 200px;
  min-height: 40px;
}

.cglp-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}
.cglp-help {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Staff button bottom-right */
.cglp-staff {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: color 0.2s ease-in-out, border-color 0.2s;
}
.cglp-staff:hover {
  color: var(--cglp-hover, #111827);
}

/* Modal */
.cglp-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.cglp-modal-inner {
  width: 100%;
  max-width: 420px;
  background: var(--cglp-modal-bg, #fff);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: var(--cglp-modal-text, #191919);
  font-size: var(--cglp-modal-font-size, 16px);
  font-family: var(--cglp-modal-font-family, inherit);
}

/* Modal heading */
.cglp-modal-heading {
  color: var(--cglp-modal-heading-color, #191919);
  font-size: var(--cglp-modal-heading-size, 22px);
  margin-bottom: 8px;
}

.cglp-modal-close {
  float: right;
  cursor: pointer;
  font-size: 1.2rem;
  color: #191919;
}

/* Inputs & button share the same radius, enforce with higher specificity */
.cglp-modal .cglp-wp-form p {
  margin: 12px 0;
}
.cglp-modal .cglp-wp-form label {
  display: block;
  margin-bottom: 6px;
  color: #191919;
}

.cglp-modal .cglp-wp-form input[type="text"],
.cglp-modal .cglp-wp-form input[type="password"],
.cglp-modal .cglp-wp-form input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d1d5db;
  border-radius: var(--cglp-modal-radius, 50px) !important;
  color: #191919;
  box-sizing: border-box;
}

/* Button font family/size controllable, hover color from settings */
.cglp-modal .cglp-wp-form input[type="submit"] {
  margin-top: 6px;
  border: none;
  background: #ffa600;
  color: #191919;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
  font-family: var(--cglp-modal-button-font-family, inherit);
  font-size: var(--cglp-modal-button-font-size, 16px);
}
.cglp-modal .cglp-wp-form input[type="submit"]:hover {
  background: var(--cglp-modal-hover, #ff7a00);
}

/* Responsive */
@media (max-width: 900px) {
  .cglp-wrap {
    flex-direction: column;
  }
  .cglp-left {
    min-height: 40vh;
  }
  .cglp-right {
    min-height: 60vh;
  }
}
