/* SW Admin Login - brand shell for wp-login / WPS Hide Login */
body.login {
  --sw-ink: #07060f;
  --sw-panel: #12101c;
  --sw-paper: #f4f2ff;
  --sw-mist: #9b97b0;
  --sw-green: #2fea15;
  --sw-line: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(47, 234, 21, 0.12), transparent 55%),
    radial-gradient(720px 420px at -10% 20%, rgba(255, 64, 255, 0.08), transparent 52%),
    var(--sw-ink) !important;
  color: var(--sw-paper);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100%;
}

body.login #login {
  width: min(100% - 2rem, 380px);
  padding: 4% 0 0;
}

body.login #login h1 a {
  background-image: url("logo-mark.svg"), none;
  background-size: 72px 72px;
  background-position: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

body.login #login h1::after {
  content: "SmoothWizard";
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--sw-paper);
  text-align: center;
}

body.login #login h1 a:focus {
  box-shadow: none;
}

body.login form {
  background: var(--sw-panel) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45) !important;
  padding: 26px 24px 22px !important;
}

body.login label {
  color: var(--sw-mist) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.login .input,
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  background: rgba(0, 0, 0, 0.42) !important;
  border: 1px solid var(--sw-line) !important;
  border-radius: 10px !important;
  color: var(--sw-paper) !important;
  font-size: 15px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
}

body.login .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
  border-color: rgba(47, 234, 21, 0.55) !important;
  box-shadow: 0 0 0 1px rgba(47, 234, 21, 0.25) !important;
}

body.login .button-primary,
body.login .wp-core-ui .button-primary {
  background: var(--sw-green) !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #061003 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  height: auto !important;
  line-height: 1.2 !important;
  padding: 11px 18px !important;
  float: none !important;
  width: 100%;
  margin-top: 8px;
}

body.login .button-primary:hover,
body.login .wp-core-ui .button-primary:hover {
  filter: brightness(1.08);
  background: var(--sw-green) !important;
  color: #061003 !important;
}

body.login .forgetmenot {
  float: none !important;
  margin: 12px 0 4px !important;
}

body.login .forgetmenot label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500 !important;
  color: var(--sw-paper) !important;
  font-size: 13px !important;
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
  padding: 0 !important;
  margin: 14px 0 0 !important;
}

body.login #nav a,
body.login #backtoblog a,
body.login .language-switcher a {
  color: var(--sw-mist) !important;
  text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: var(--sw-green) !important;
}

body.login #login_error,
body.login .message,
body.login .success {
  background: rgba(18, 16, 28, 0.95) !important;
  border-left-color: var(--sw-green) !important;
  color: var(--sw-paper) !important;
  box-shadow: none !important;
  border-radius: 10px;
}

body.login #login_error {
  border-left-color: #ff5c7a !important;
}

body.login .sw-admin-login__google {
  margin: 0 0 14px !important;
}

body.login .sw-admin-login__google-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--sw-line) !important;
  background: #fff !important;
  color: #1f1f1f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

body.login .sw-admin-login__google-btn:hover,
body.login .sw-admin-login__google-btn:focus {
  background: #f3f3f3 !important;
  border-color: #cfcfcf !important;
  color: #111 !important;
}

body.login .sw-admin-login__google-btn.is-locked {
  background: #1a1218 !important;
  border-color: rgba(255, 92, 122, 0.55) !important;
  color: #ffb3c1 !important;
  cursor: not-allowed !important;
  box-shadow: 0 0 0 1px rgba(255, 92, 122, 0.2), 0 0 24px rgba(255, 64, 96, 0.18) !important;
  animation: sw-google-lock-pulse 1.6s ease-in-out infinite;
}

body.login .sw-admin-login__google-btn.is-locked .sw-admin-login__google-icon {
  opacity: 0.35;
  filter: grayscale(1);
}

body.login .sw-admin-login__lock-shield {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120px 60px at 50% 40%, rgba(255, 64, 96, 0.22), transparent 70%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 6px,
      rgba(255, 92, 122, 0.07) 6px,
      rgba(255, 92, 122, 0.07) 12px
    );
  pointer-events: none;
}

body.login .sw-admin-login__lock-shield::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -22px 0 0 -14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='10' width='14' height='10' rx='2' fill='%23ff5c7a'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' stroke='%23ff5c7a' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='15' r='1.5' fill='%2312101c'/%3E%3C/svg%3E")
    center / contain no-repeat;
  animation: sw-lock-bob 1.2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 92, 122, 0.65));
}

body.login .sw-admin-login__google-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  letter-spacing: 0.02em;
}

body.login .sw-admin-login__google-remain {
  position: relative;
  z-index: 1;
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 92, 122, 0.18);
  color: #ffd0d8;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
}

body.login .sw-admin-login__google.is-hit {
  animation: sw-google-shake 0.45s ease;
}

body.login.sw-google-shake #login,
body.login.sw-google-locked #login {
  animation: sw-google-shake 0.55s ease;
}

body.login.sw-login-locked form {
  position: relative;
}

body.login.sw-google-locked form::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 92, 122, 0.35);
  animation: sw-form-glow 2s ease-in-out infinite;
}

body.login .sw-admin-login__err-anim {
  animation: sw-google-shake 0.5s ease;
}

@keyframes sw-google-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes sw-google-lock-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 92, 122, 0.2), 0 0 18px rgba(255, 64, 96, 0.12);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 92, 122, 0.45), 0 0 28px rgba(255, 64, 96, 0.28);
  }
}

@keyframes sw-lock-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes sw-form-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

body.login .sw-admin-login__google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3Cpath fill='none' d='M0 0h48v48H0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  position: relative;
  z-index: 1;
}

body.login .sw-admin-login__or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px !important;
  color: var(--sw-mist);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

body.login .sw-admin-login__or::before,
body.login .sw-admin-login__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sw-line);
}

body.login .sw-admin-login__or span {
  flex: 0 0 auto;
}

body.login .sw-admin-login__captcha {
  margin: 14px 0 4px !important;
}

body.login .sw-admin-login__canvas {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 72px;
  margin: 8px 0 8px;
  border-radius: 10px;
  border: 1px solid var(--sw-line);
  background: #0b0a14;
}

body.login .sw-admin-login__refresh {
  display: inline-block;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sw-green);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.login .sw-admin-login__lock {
  display: block;
  margin-top: 8px;
  color: #ff8fa3;
  font-size: 13px;
}

body.login .sw-admin-login__foot {
  margin: 22px auto 0;
  text-align: center;
  color: var(--sw-mist);
  font-size: 11px;
  letter-spacing: 0.04em;
}

body.login .language-switcher {
  margin-top: 18px !important;
}

body.login .language-switcher select {
  background: var(--sw-panel);
  color: var(--sw-paper);
  border: 1px solid var(--sw-line);
  border-radius: 8px;
}
