/* =========================================================================
   GASE — WordPress login, registration and password screens
   ========================================================================= */

:root {
  --gase-ink: #0b0e0c;
  --gase-bone: #f2efe6;
  --gase-lime: #d8ff4f;
  --gase-grey: #6b716a;
  --gase-line: rgba(11, 14, 12, 0.16);
}

body.login {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--gase-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 255, 79, 0.32), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(216, 255, 79, 0.12), transparent 34%),
    linear-gradient(180deg, #f7f4ec 0%, #ebe8dd 100%);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login::before {
  content: "GASE";
  position: fixed;
  right: -2vw;
  bottom: -7vw;
  z-index: 0;
  color: rgba(11, 14, 12, 0.035);
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(10rem, 30vw, 28rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.7;
  pointer-events: none;
  user-select: none;
}

#login {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  padding: clamp(32px, 8vh, 96px) 0 22px;
}

#login h1 {
  margin: 0 0 24px;
}

#login h1 a {
  display: block;
  width: 240px;
  height: 54px;
  margin: 0 auto;
  padding: 0;
  background: url("../img/gase-login-logo.svg") center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
}

.login form {
  margin: 0;
  padding: clamp(24px, 6vw, 34px);
  border: 1px solid rgba(216, 255, 79, 0.2);
  border-radius: 18px;
  background: var(--gase-ink);
  box-shadow: 0 24px 70px rgba(11, 14, 12, 0.24);
  color: var(--gase-bone);
}

.login label {
  display: block;
  margin-bottom: 7px;
  color: var(--gase-bone);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login form .input,
.login form input[type="text"],
.login form input[type="email"],
.login form input[type="password"] {
  width: 100%;
  height: 46px;
  margin: 0 0 20px;
  padding: 0 13px;
  border: 1px solid rgba(242, 239, 230, 0.2);
  border-radius: 9px;
  background: #131a13;
  color: var(--gase-bone);
  font: 400 14px "DM Sans", sans-serif;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login form .input:focus,
.login form input[type="text"]:focus,
.login form input[type="email"]:focus,
.login form input[type="password"]:focus {
  border-color: var(--gase-lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 79, 0.13);
  outline: none;
}

.login form input[type="checkbox"] {
  accent-color: var(--gase-lime);
}

.login form .forgetmenot {
  float: none;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
}

.login form .forgetmenot label {
  margin: 0;
  color: rgba(242, 239, 230, 0.7);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.login .button.wp-hide-pw {
  top: 3px;
  right: 3px;
  width: 40px;
  height: 40px;
  color: var(--gase-grey);
  background: transparent;
}

.login .button.wp-hide-pw:hover,
.login .button.wp-hide-pw:focus {
  color: var(--gase-lime);
  background: rgba(216, 255, 79, 0.08);
}

.login .wp-pwd {
  position: relative;
}

.login .wp-pwd .input {
  padding-right: 48px;
}

.login form .submit {
  margin: 22px 0 0;
}

.login .button-primary,
#login form .button-primary,
.wp-core-ui .button-primary {
  display: block;
  width: 100%;
  height: 47px;
  padding: 0 18px;
  border: 1px solid var(--gase-lime);
  border-radius: 8px;
  background: var(--gase-lime);
  color: var(--gase-ink);
  font: 700 12px "Archivo", Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.login .button-primary:hover,
.login .button-primary:focus,
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
  border-color: var(--gase-bone);
  background: var(--gase-bone);
  color: var(--gase-ink);
  box-shadow: none;
}

.login #nav,
.login #backtoblog {
  margin: 18px 0 0;
  color: var(--gase-grey);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.login #nav a,
.login #backtoblog a {
  color: var(--gase-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.login #nav a:hover,
.login #backtoblog a:hover {
  color: var(--gase-ink);
}

.login .message,
.login .success,
.login #login_error {
  padding: 13px 16px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
}

.login .message,
.login .success {
  border: 1px solid rgba(142, 173, 43, 0.4);
  border-left: 4px solid #9dbb2d;
  background: #edf8cf;
  color: #1d2918;
}

.login #login_error {
  border: 1px solid rgba(207, 82, 51, 0.4);
  border-left: 4px solid #ff6a3d;
  background: #fbe2db;
  color: #491b11;
}

.login .message a,
.login #login_error a {
  color: inherit;
}

.login .privacy-policy-page-link {
  margin: 12px 0 0;
}

.login .privacy-policy-page-link a {
  color: var(--gase-grey);
  font-size: 10px;
}

.login #reg_passmail {
  margin-bottom: 14px;
  color: rgba(242, 239, 230, 0.62);
  font-size: 11px;
}

.login form .indicator-hint {
  margin-top: -12px;
  margin-bottom: 12px;
  color: var(--gase-grey);
  font-size: 10px;
}

.login #pass-strength-result {
  height: auto;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 9px 11px;
  border-radius: 7px;
  border-color: rgba(242, 239, 230, 0.15);
  background: #1a2318;
  color: var(--gase-bone);
  font-size: 11px;
  line-height: 1.4;
}

.login #pass-strength-result.good,
.login #pass-strength-result.strong {
  border-color: var(--gase-lime);
}

/* GASE registration additions */
.gase-register-field {
  margin-top: 0;
}

.gase-register-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.gase-register-note {
  margin: -10px 0 18px;
  color: rgba(242, 239, 230, 0.55);
  font-size: 10px;
  line-height: 1.5;
}

.gase-login-footer {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 16px 28px;
  color: var(--gase-grey);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
}

.gase-login-footer a {
  color: var(--gase-ink);
}

@media (max-width: 480px) {
  #login {
    padding-top: 34px;
  }

  #login h1 a {
    width: 205px;
    height: 46px;
  }

  .login form {
    border-radius: 14px;
  }
}

.gase-register-consent {
  margin: -4px 0 18px;
  color: rgba(242, 239, 230, 0.68);
  font-size: 10.5px;
  line-height: 1.5;
}

.gase-register-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.gase-register-consent input {
  margin-top: 2px;
  accent-color: var(--gase-lime);
}

.gase-register-consent a {
  color: var(--gase-lime);
}

.login form input:-webkit-autofill,
.login form input:-webkit-autofill:hover,
.login form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gase-bone);
  box-shadow: 0 0 0 1000px #131a13 inset;
  caret-color: var(--gase-bone);
  transition: background-color 9999s ease-in-out 0s;
}

.login .language-switcher {
  margin-top: 18px;
}

.login .language-switcher select {
  height: 40px;
  border: 1px solid var(--gase-line);
  border-radius: 7px;
  background: #fffdf7;
  color: var(--gase-ink);
  font: 400 12px "DM Sans", sans-serif;
}

.login .language-switcher .button {
  height: 40px;
  border: 1px solid var(--gase-ink);
  border-radius: 7px;
  background: var(--gase-lime);
  color: var(--gase-ink);
  font: 700 11px "Archivo", Arial, sans-serif;
  box-shadow: none;
}

.login .language-switcher .button:hover {
  background: var(--gase-bone);
}

/* Registration form spacing */
.gase-register-note {
  margin: 0 0 10px;
  color: rgba(242, 239, 230, 0.55);
  font-size: 10px;
  line-height: 1.5;
}

.gase-register-consent {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 239, 230, 0.12);
  border-radius: 7px;
  background: rgba(216, 255, 79, 0.04);
}

.gase-register-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: rgba(242, 239, 230, 0.68);
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.gase-register-consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--gase-lime);
}

.login #reg_passmail {
  margin: 0 0 16px;
  color: rgba(242, 239, 230, 0.62);
  font-size: 10.5px;
  line-height: 1.5;
}

.login form input:-webkit-autofill,
.login form input:-webkit-autofill:hover,
.login form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--gase-bone) !important;
  background-color: #131a13 !important;
  box-shadow: 0 0 0 1000px #131a13 inset !important;
  caret-color: var(--gase-bone) !important;
}

/* Refined GASE WordPress login */
#login h1 a {
  width: 210px;
  height: 82px;
  background-image: url("../img/gase-logo.svg");
  background-size: contain;
  background-position: center;
}

.login #nav,
.login #backtoblog,
.login .privacy-policy-page-link,
.login .language-switcher {
  display: none !important;
}

.gase-login-intro {
  max-width: 420px;
  margin: 0 auto 18px;
  color: var(--gase-grey);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.login .gase-login-footer {
  max-width: 560px;
  margin: 26px auto 0;
  padding: 0 16px 32px;
  color: var(--gase-grey);
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.gase-login-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 12px;
}

.gase-login-footer__links a {
  color: var(--gase-ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.gase-login-footer__links a:hover {
  color: var(--gase-ink);
  text-decoration-color: var(--gase-lime);
  text-decoration-thickness: 2px;
}

.gase-login-footer p {
  margin: 0;
  color: var(--gase-grey);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.gase-login-footer p a {
  color: var(--gase-grey);
}

.gase-login-footer p a:hover {
  color: var(--gase-ink);
}

@media (max-width: 480px) {
  #login h1 a {
    width: 180px;
    height: 70px;
  }

  .gase-login-footer {
    padding-bottom: 24px;
  }

  .gase-login-footer__links {
    gap: 8px 15px;
  }
}

.login form .forgetmenot .dashicons {
  display: none !important;
}

/* GASE registration screen */
.login-action-register .message {
  display: none !important;
}

.gase-register-intro {
  max-width: 420px;
  margin: 0 auto 20px;
  text-align: left;
}

.gase-register-intro__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
  color: var(--gase-grey);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gase-register-intro__eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gase-lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 79, 0.18);
}

.gase-register-intro h2 {
  margin: 0 0 10px;
  color: var(--gase-ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(2.7rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.gase-register-intro h2 span {
  color: var(--gase-grey);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.04em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.gase-register-intro p:last-child {
  max-width: 38ch;
  margin: 0;
  color: var(--gase-grey);
  font-size: 12px;
  line-height: 1.6;
}

.login-action-register .gase-register-note {
  margin-bottom: 10px;
}

.login-action-register .gase-register-consent {
  margin-top: 0;
}

.login-action-register .login form .submit {
  margin-top: 18px;
}

@media (max-width: 480px) {
  .gase-register-intro {
    margin-bottom: 16px;
  }

  .gase-register-intro h2 {
    font-size: 2.8rem;
  }
}
