/* =========================================
   GBX Branded wp-login.php (Option A)
   Styles WordPress login + reset password screens
========================================= */

body.login {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(1200px 700px at 20% 30%, rgba(2,218,255,0.14), transparent 55%),
              radial-gradient(1200px 700px at 80% 40%, rgba(238,0,255,0.12), transparent 55%),
              linear-gradient(180deg, #06172B 0%, #041225 100%);
  color: #fff;
}

/* Two-column layout using a fixed left panel (no markup changes needed) */
body.login::before {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 46vw;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(6,23,43,0.35) 0%, rgba(6,23,43,0.85) 100%),
    url('../img/gbx-bg-texture.png') center/cover no-repeat;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 0;
}

body.login::after {
  content: "";
  position: fixed;
  left: 0;
  top: 0;
  width: 46vw;
  height: 100vh;
  background: url('../img/gbx-login-cubes.svg') center 62%/72% no-repeat;
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}

/* Growth Box logo in left panel */
body.login #login h1 {
  position: fixed;
  left: 36px;
  top: 32px;
  width: calc(46vw - 72px);
  max-width: 520px;
  z-index: 2;
  margin: 0;
}

body.login #login h1 a {
  background-image: url('../img/gbx-logo.png') !important;
  background-size: contain !important;
  width: 280px !important;
  height: 52px !important;
}

/* Move the login panel to the right column */
body.login #login {
  position: relative;
  z-index: 3;
  width: 540px;
  max-width: calc(100vw - 46vw - 80px);
  margin: 0;
  padding: 0;
  margin-left: calc(46vw + 64px);
  padding-top: 120px;
}

/* Responsive: collapse to single column */
@media (max-width: 980px) {
  body.login::before,
  body.login::after {
    width: 100vw;
  }
  body.login::after {
    opacity: 0.16;
    background-size: 110%;
  }
  body.login #login {
    margin-left: 0;
    max-width: 92vw;
    padding: 120px 4vw 48px;
  }
  body.login #login h1 {
    width: calc(100vw - 72px);
  }
}

/* Remove default WP look */
body.login #loginform,
body.login #lostpasswordform,
body.login #resetpassform,
body.login #registerform {
  background: rgba(10,18,35,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 28px 22px;
}

/* Animated gradient border */
body.login #loginform::before,
body.login #lostpasswordform::before,
body.login #resetpassform::before,
body.login #registerform::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(90deg, #02DAFF, #7a5cff, #EE00FF, #02DAFF);
  background-size: 300% 300%;
  animation: gbxLoginBorderShift 8s ease infinite;

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes gbxLoginBorderShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.login #loginform,
body.login #lostpasswordform,
body.login #resetpassform,
body.login #registerform {
  position: relative;
}

/* Headline injected via login_message */
.gbx-login-head {
  margin: 0 0 18px;
}

.gbx-login-title {
  font-size: 40px;
  line-height: 1.1;
  margin: 8px 0 6px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.gbx-login-kicker {
  font-size: 16px;
  font-weight: 500;
  color: rgba(2,218,255,0.9);
}

.gbx-login-account {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}

/* Hide default reset message - we replace it */
body.login p.message {
  display: none;
}

/* Labels + fields */
body.login label {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  background: rgba(4,18,37,0.70) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: rgba(2,218,255,0.45) !important;
  box-shadow: 0 0 0 4px rgba(2,218,255,0.12) !important;
  outline: none !important;
}

/* Primary button */
body.login .wp-core-ui .button-primary {
  width: 100%;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 14px 18px !important;
  height: auto !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, #02DAFF 0%, #7a5cff 52%, #EE00FF 100%) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,0.25);
  transition: transform .15s ease, filter .15s ease;
}

body.login .wp-core-ui .button-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Links */
body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
  color: rgba(255,255,255,0.75);
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
  color: rgba(2,218,255,0.95);
}

/* Errors */
body.login #login_error,
body.login .message,
body.login .success {
  border-left: 0;
  border-radius: 14px;
  background: rgba(10,18,35,0.72);
  color: rgba(255,255,255,0.86);
}
