/* ==========================================================================
   Gig Advisor — branded wp-login.php ("Stage Lights" style)
   The --ga-login-logo custom property is injected inline by GA_Login.
   ========================================================================== */

:root {
  --ga-primary: #6d28d9;
  --ga-primary-600: #7c3aed;
  --ga-primary-700: #5b21b6;
  --ga-grad: linear-gradient(120deg, #7c3aed 0%, #db2777 55%, #f59e0b 100%);
  --ga-text: #1b1530;
  --ga-muted: #6b6880;
  --ga-border: #ece9f4;
}

body.login {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  margin: 0;
  color: #fff;
  background:
    radial-gradient(55% 80% at 15% 8%, rgba(124, 58, 237, 0.55), transparent 60%),
    radial-gradient(50% 75% at 88% 18%, rgba(219, 39, 119, 0.45), transparent 55%),
    radial-gradient(60% 90% at 75% 100%, rgba(245, 158, 11, 0.30), transparent 55%),
    linear-gradient(160deg, #181140 0%, #130f2b 60%, #0d0a20 100%);
  background-attachment: fixed;
}

body.login::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

#login {
  width: 360px;
  max-width: 92vw;
  padding: 6% 0 4%;
  position: relative;
  z-index: 1;
}

/* ---- Brand mark ---- */
.login h1 { margin-bottom: 22px; }

.login h1 a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: auto;
  height: auto;
  margin: 0 auto;
  padding: 0;
  text-indent: 0;
  background: none;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.login h1 a::before {
  content: "";
  flex: none;
  width: 48px;
  height: 48px;
  background-image: var(--ga-login-logo);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 6px 16px rgba(124, 58, 237, 0.45));
}

/* ---- Card ---- */
#loginform,
#registerform,
#lostpasswordform,
.login form {
  background: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, 0.55);
  padding: 28px 26px;
  color: var(--ga-text);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Override WordPress core floats on remember-me + submit row */
.login form p,
.login form .user-pass-wrap {
  float: none !important;
  width: 100%;
  margin: 0 0 18px;
  box-sizing: border-box;
}

.login form p:last-child {
  margin-bottom: 0;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
  width: 100%;
  background: #f6f5fb;
  border: 1.5px solid var(--ga-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--ga-text);
  box-shadow: none;
  margin: 0;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
  border-color: var(--ga-primary-600);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
  outline: none;
}

.login label {
  color: var(--ga-text);
  font-size: 0.92rem;
  font-weight: 600;
}

.login .password-input-wrapper {
  width: 100%;
  display: block;
  margin-top: 6px;
}

.login .user-pass-wrap {
  margin-bottom: 0;
}

.login .forgetmenot {
  float: none !important;
  clear: both;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 6px 0 0;
  line-height: 1.4;
}

.login .forgetmenot input[type="checkbox"] {
  margin: 0;
  flex: none;
}

.login .button.wp-hide-pw {
  border: none;
  background: transparent;
  color: var(--ga-muted);
}

.login .forgetmenot label { font-weight: 500; color: var(--ga-muted); }

/* ---- Primary button ---- */
.wp-core-ui .button-primary,
.login .button-primary {
  width: 100%;
  float: none;
  display: block;
  background: var(--ga-grad);
  background-size: 140% 140%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  height: auto;
  font-size: 0.98rem;
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 12px 26px -12px rgba(124, 58, 237, 0.7);
  transition: transform 0.15s, background-position 0.25s, box-shadow 0.2s;
}

.wp-core-ui .button-primary:hover,
.login .button-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(219, 39, 119, 0.6);
}

.login .submit {
  float: none !important;
  clear: both;
  display: block;
  width: 100%;
  text-align: center;
  margin: 22px 0 0 !important;
  padding: 0;
}

.login .submit .button-primary {
  margin: 0;
}

/* ---- Links below the card ---- */
.login #nav,
.login #backtoblog {
  text-align: center;
  padding: 0;
  margin: 16px 0 0;
}

.login #nav a,
.login #backtoblog a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  transition: color 0.15s;
}

.login #nav a:hover,
.login #backtoblog a:hover { color: #fff; }

.login #backtoblog a::before {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Messages ---- */
.login .message,
.login .success,
.login #login_error {
  border-radius: 12px;
  border: none;
  border-left: 4px solid var(--ga-primary);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.5);
  background: #fff;
  color: var(--ga-text);
}

.login #login_error { border-left-color: #dc2626; }
.login .success { border-left-color: #16a34a; }

/* Privacy policy / language switcher */
.login .privacy-policy-page-link,
.login .language-switcher { text-align: center; }
.login .privacy-policy-page-link a { color: rgba(255, 255, 255, 0.7); }
