:root {
  --ipp-gold: #c2a25a;
  --ipp-gold-dark: #8c6b25;
  --ipp-charcoal: #202124;
  --ipp-text: #303238;
  --ipp-muted: #687080;
  --ipp-border: #ded8ca;
  --ipp-surface: rgba(255, 255, 255, 0.96);
}

body.login {
  min-height: 100vh;
  margin: 0;
  padding: clamp(20px, 4vw, 64px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow-x: hidden;
  background-color: #171819;
  background-image: linear-gradient(90deg, rgba(8, 9, 10, 0.18), rgba(8, 9, 10, 0.04) 48%, rgba(8, 9, 10, 0.34)), var(--ipp-magic-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--ipp-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.login::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.12), transparent 38%);
}

body.login #login {
  position: relative;
  z-index: 1;
  flex: 0 0 440px;
  width: 440px;
  max-width: 100%;
  margin: 0 clamp(0px, 5vw, 90px) 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.login #login *,
.ipp-magic-standalone *,
.ipp-magic-combined *,
.ipp-magic-woocommerce *,
.ipp-customer-login-stage,
.ipp-customer-login-stage * { box-sizing: border-box; }

.login h1 { margin: 0 0 14px; }
.login h1 a {
  display: block;
  width: 97px;
  height: 97px;
  margin: 0 auto;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  text-indent: -9999px;
  background-image: var(--ipp-magic-logo);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
}

.login .ipp-login-intro {
  margin: 0 0 14px;
  padding: 0 10px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.ipp-login-brand-name {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
}
.login .ipp-login-intro h2 { margin: 4px 0 5px; color: #fff; font-size: 27px; line-height: 1.15; }
.login .ipp-login-intro p:last-child { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.5; }

.login form#loginform,
.login form#lostpasswordform,
.login form#resetpassform,
.login form#registerform {
  margin-top: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: var(--ipp-surface);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.login label,
.ipp-magic-wrap label,
.ipp-magic-password-card label { color: var(--ipp-text); font-size: 14px; font-weight: 750; }

.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.ipp-magic-wrap input[type="email"],
.ipp-magic-password-card input[type="text"],
.ipp-magic-password-card input[type="password"] {
  width: 100%;
  min-height: 49px;
  margin: 7px 0 16px;
  padding: 10px 13px;
  box-sizing: border-box;
  border: 1px solid #d5d0c5;
  border-radius: 9px;
  background: #fff;
  color: var(--ipp-text);
  font-size: 16px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login input:focus,
.ipp-magic-wrap input:focus,
.ipp-magic-password-card input:focus {
  border-color: var(--ipp-gold);
  outline: none;
  box-shadow: 0 0 0 4px rgba(194, 162, 90, 0.2);
}

.login .button-primary,
.ipp-magic-submit,
.ipp-magic-password-card input[type="submit"] {
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--ipp-gold) !important;
  border-radius: 9px !important;
  background: var(--ipp-gold) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.login .button-primary { width: 100%; margin-top: 7px; }
.login .button-primary:hover,
.login .button-primary:focus,
.ipp-magic-submit:hover,
.ipp-magic-submit:focus,
.ipp-magic-password-card input[type="submit"]:hover {
  transform: translateY(-1px);
  border-color: var(--ipp-gold-dark) !important;
  background: var(--ipp-gold-dark) !important;
}

.login .forgetmenot { float: none; margin: 0 0 8px; }
.login .forgetmenot label { font-size: 13px; font-weight: 600; }
.login #nav, .login #backtoblog { margin: 13px 0 0; padding: 0; text-align: center; }
.login #nav a, .login #backtoblog a { color: #fff; font-weight: 650; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
body.login #nav a:hover,
body.login #nav a:focus,
body.login #nav a:active,
body.login #backtoblog a:hover,
body.login #backtoblog a:focus,
body.login #backtoblog a:active { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.login .privacy-policy-page-link, .login .language-switcher { display: none; }

.login #login_error,
.login .message,
.login .success {
  margin: 0 0 14px;
  border: 0;
  border-left: 5px solid var(--ipp-gold);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.ipp-magic-wrap { width: 100%; box-sizing: border-box; color: var(--ipp-text); }
.ipp-magic-divider { display: flex; align-items: center; gap: 12px; margin: 15px 0 12px; color: rgba(255, 255, 255, 0.9); font-size: 11px; font-weight: 850; letter-spacing: 0.13em; }
.ipp-magic-divider::before, .ipp-magic-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.5); }
.ipp-magic-toggle {
  width: 100%;
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background: rgba(32, 33, 36, 0.86);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, background 0.18s ease;
}
.ipp-magic-toggle:hover, .ipp-magic-toggle:focus { transform: translateY(-1px); background: #202124; outline: 3px solid rgba(194, 162, 90, 0.38); outline-offset: 2px; }
.ipp-magic-toggle-icon { color: var(--ipp-gold); font-size: 20px; line-height: 1; transition: transform 0.18s ease; }
.ipp-magic-toggle[aria-expanded="true"] .ipp-magic-toggle-icon { transform: rotate(90deg); }

.ipp-magic-panel,
.ipp-magic-password-card {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 17px;
  background: var(--ipp-surface);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  animation: ippMagicReveal 0.24s ease both;
}
.ipp-magic-panel[hidden] { display: none !important; }
.ipp-magic-eyebrow { margin: 0 0 6px; color: var(--ipp-gold-dark); font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.ipp-magic-panel h2, .ipp-magic-password-card h2 { margin: 0 0 8px; color: var(--ipp-charcoal); font-size: 22px; line-height: 1.22; }
.ipp-magic-description { margin: 0 0 17px; color: var(--ipp-muted); font-size: 14px; line-height: 1.58; }
.ipp-magic-submit { width: 100%; }
.ipp-magic-privacy { margin: 13px 0 0; color: #777d88; font-size: 11px; line-height: 1.5; }
.ipp-magic-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ipp-magic-status { margin: 0 0 15px; padding: 11px 13px; border: 1px solid #d7dce4; border-radius: 9px; background: #f7f8fa; color: #394150; font-size: 13px; line-height: 1.5; }
.ipp-magic-status--success { border-color: #badcc7; background: #eef9f2; color: #17613a; }
.ipp-magic-status--warning { border-color: #ead18f; background: #fff9e7; color: #76560b; }
.ipp-magic-status--error { border-color: #efb7b7; background: #fff3f3; color: #8c2424; }

.ipp-magic-standalone, .ipp-magic-combined, .ipp-magic-woocommerce { width: min(100%, 460px); margin: 24px auto; }
.ipp-magic-standalone .ipp-magic-divider, .ipp-magic-combined .ipp-magic-divider, .ipp-magic-woocommerce .ipp-magic-divider { color: var(--ipp-muted); }
.ipp-magic-standalone .ipp-magic-divider::before, .ipp-magic-standalone .ipp-magic-divider::after,
.ipp-magic-combined .ipp-magic-divider::before, .ipp-magic-combined .ipp-magic-divider::after,
.ipp-magic-woocommerce .ipp-magic-divider::before, .ipp-magic-woocommerce .ipp-magic-divider::after { background: var(--ipp-border); }
.ipp-magic-standalone .ipp-magic-panel, .ipp-magic-combined .ipp-magic-panel, .ipp-magic-woocommerce .ipp-magic-panel,
.ipp-magic-password-card { border-color: var(--ipp-border); background: #fff; box-shadow: 0 16px 42px rgba(15, 23, 42, 0.11); }
.ipp-magic-standalone .ipp-magic-toggle, .ipp-magic-combined .ipp-magic-toggle, .ipp-magic-woocommerce .ipp-magic-toggle { border-color: var(--ipp-charcoal); }
.ipp-magic-password-card { margin-top: 0; }
.ipp-magic-password-card form { margin: 0; }
.ipp-magic-password-card .login-remember { margin: 0 0 12px; }
.ipp-magic-password-card .login-submit { margin: 0; }
.ipp-magic-password-card input[type="submit"] { width: 100%; }

/* WooCommerce customer login: same corporate design, separate from the admin login. */
.ipp-magic-account-login { overflow-x: hidden; }
.ipp-magic-customer-standalone { min-height: 100vh; min-height: 100svh; margin: 0; background: #171819; }
.ipp-magic-customer-standalone .woocommerce { min-height: 100vh; min-height: 100svh; }
.ipp-magic-customer-standalone .ipp-customer-login-stage { min-height: 100vh; min-height: 100svh; }
.ipp-magic-account-login #content-wrap { margin-top: 0 !important; padding-top: 0 !important; }
.ipp-magic-account-login .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.ipp-customer-login-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100vw;
  max-width: none;
  min-height: max(690px, calc(100vh - 86px));
  margin: 0 calc(50% - 50vw);
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background-color: #171819;
  background-image: linear-gradient(90deg, rgba(9, 10, 11, 0.2), rgba(9, 10, 11, 0.28) 46%, rgba(9, 10, 11, 0.58)), var(--ipp-magic-bg);
  background-position: center;
  background-size: cover;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ipp-customer-login-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 78% 45%, rgba(255, 255, 255, 0.16), transparent 39%);
  pointer-events: none;
}

.ipp-customer-login-brand {
  align-self: end;
  max-width: 470px;
  padding: 0 0 28px;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.48);
}
.ipp-customer-login-brandline {
  display: block;
  margin-bottom: 13px;
  color: #dfc77f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}
.ipp-customer-login-brand strong {
  display: block;
  margin-bottom: 13px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.035em;
}
.ipp-customer-login-brand > span:last-child {
  display: block;
  max-width: 390px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.65;
}

.ipp-customer-login-content { position: relative; z-index: 3; width: min(100%, 440px); min-width: 0; }
.ipp-customer-login-heading { margin: 0 0 15px; color: #fff; text-align: center; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.ipp-customer-login-logo { display: inline-block; margin: 0 auto 13px; border-radius: 0; line-height: 0; box-shadow: none; }
.ipp-customer-login-logo:focus-visible { outline: 4px solid rgba(213, 180, 94, 0.75); outline-offset: 4px; }
.ipp-customer-login-heading img {
  display: block;
  width: 97px;
  height: 97px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.ipp-customer-login-heading .ipp-magic-eyebrow { margin-bottom: 5px; color: #d5b45e; }
.ipp-customer-login-heading .ipp-login-brand-name { margin-bottom: 6px; }
.ipp-customer-login-heading h1 { margin: 0; color: #fff; font-size: 27px; line-height: 1.16; }
.ipp-customer-login-heading > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.5; }

.ipp-login-tuev-seal {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  display: block;
  width: clamp(145px, 15.3vw, 255px);
  max-width: 36vw;
  height: auto;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.ipp-customer-login-stage .owp-account-links,
.ipp-customer-login-content > h2,
.ipp-customer-login-stage .oceanwp-loginform-wrap > h2 { display: none !important; }

.ipp-customer-login-stage .woocommerce-form-login,
.ipp-customer-login-stage form.woocommerce-form-login {
  width: 100%;
  margin: 0 !important;
  padding: 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 18px !important;
  background: var(--ipp-surface) !important;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(18px);
}
.ipp-customer-login-stage .woocommerce-form-login label { color: var(--ipp-text); font-size: 14px; font-weight: 750; }
.ipp-customer-login-stage .woocommerce-form-login input[type="text"],
.ipp-customer-login-stage .woocommerce-form-login input[type="email"],
.ipp-customer-login-stage .woocommerce-form-login input[type="password"] {
  width: 100%;
  min-height: 49px;
  margin: 7px 0 16px;
  padding: 10px 42px 10px 13px;
  border: 1px solid #d5d0c5;
  border-radius: 9px;
  background: #fff;
  color: var(--ipp-text);
  font-size: 16px;
  box-shadow: none;
}
.ipp-customer-login-stage .woocommerce-form-login input:focus {
  border-color: var(--ipp-gold);
  outline: none;
  box-shadow: 0 0 0 4px rgba(194, 162, 90, 0.2);
}
.ipp-customer-login-stage .woocommerce-form-login__submit {
  float: none !important;
  width: 100%;
  min-height: 48px;
  margin: 14px 0 0 !important;
  border: 1px solid var(--ipp-gold) !important;
  border-radius: 9px !important;
  background: var(--ipp-gold) !important;
  color: #fff !important;
  font-weight: 800 !important;
}
.ipp-customer-login-stage .woocommerce-form-login__submit:hover,
.ipp-customer-login-stage .woocommerce-form-login__submit:focus { border-color: var(--ipp-gold-dark) !important; background: var(--ipp-gold-dark) !important; }
.ipp-customer-login-stage .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; }
.ipp-customer-login-stage .woocommerce-form-login__rememberme input { margin: 0; }
.ipp-customer-login-stage .lost_password { margin: 16px 0 0; text-align: center; }
.ipp-customer-login-stage .lost_password a { color: #3d4048; font-weight: 700; }
.ipp-customer-login-stage .ipp-magic-woocommerce { width: 100%; margin: 0; }
.ipp-customer-login-stage .ipp-magic-divider { color: rgba(255, 255, 255, 0.92); }
.ipp-customer-login-stage .ipp-magic-divider::before,
.ipp-customer-login-stage .ipp-magic-divider::after { background: rgba(255, 255, 255, 0.55); }
.ipp-customer-login-stage .ipp-magic-toggle { border-color: rgba(255, 255, 255, 0.72); }
.ipp-customer-home-link { margin: 14px 0 0; text-align: center; }
.ipp-customer-home-link a,
.ipp-customer-home-link a:visited { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55); }
.ipp-customer-home-link a:hover,
.ipp-customer-home-link a:focus,
.ipp-customer-home-link a:active { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Logged-in customer account: native plugin shell without Elementor page markup. */
.ipp-native-account-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(58px, 5vw, 92px) clamp(28px, 5vw, 96px) clamp(52px, 6vw, 104px);
  overflow: visible;
  box-sizing: border-box;
  background: #fff;
}
.ipp-native-account-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}
.ipp-native-account-inner::after {
  content: "";
  display: table;
  clear: both;
}
.ipp-native-account-inner > .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

@keyframes ippMagicReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 783px) and (max-height: 820px) {
  .ipp-magic-customer-standalone .ipp-customer-login-stage { padding-top: 24px; padding-bottom: 24px; }
  .ipp-magic-customer-standalone .ipp-customer-login-heading { margin-bottom: 10px; }
  .ipp-magic-customer-standalone .ipp-customer-login-heading img { width: 77px; height: 77px; }
  .ipp-magic-customer-standalone .ipp-customer-login-heading h1 { font-size: 25px; }
  .ipp-magic-customer-standalone .woocommerce-form-login,
  .ipp-magic-customer-standalone form.woocommerce-form-login { padding: 20px !important; }
  .ipp-magic-customer-standalone .woocommerce-form-login input[type="text"],
  .ipp-magic-customer-standalone .woocommerce-form-login input[type="email"],
  .ipp-magic-customer-standalone .woocommerce-form-login input[type="password"] { min-height: 44px; margin-bottom: 11px; }
  .ipp-magic-customer-standalone .woocommerce-form-login__submit { min-height: 44px; margin-top: 9px !important; }
  .ipp-magic-customer-standalone .lost_password { margin-top: 11px; }
  .ipp-magic-customer-standalone .ipp-magic-divider { margin-top: 11px; margin-bottom: 9px; }
  .ipp-magic-customer-standalone .ipp-magic-toggle { min-height: 47px; }
}

@media (max-width: 782px) {
  body.login { flex-direction: column; align-items: center; justify-content: flex-start; padding: 28px 16px 42px; background-position: 35% center; background-attachment: scroll; }
  body.login::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: rgba(12, 13, 14, 0.34); }
  body.login #login { z-index: 2; flex-basis: auto; width: 100%; max-width: 430px; margin: 0 auto; }
  .ipp-customer-login-stage { grid-template-columns: minmax(0, 440px); min-height: calc(100vh - 70px); gap: 0; margin: 0 calc(50% - 50vw); padding: 30px 20px 34px; background-position: 36% center; }
  .ipp-customer-login-brand { display: none; }
  .ipp-customer-login-content { width: min(100%, 440px); margin: 0 auto; }
  .ipp-login-tuev-seal { display: none; }
}

@media (max-width: 480px) {
  body.login { padding: 20px 12px 34px; }
  .login h1 a { width: 77px; height: 77px; }
  .login .ipp-login-intro h2 { font-size: 24px; }
  .login form#loginform, .login form#lostpasswordform, .login form#resetpassform, .login form#registerform,
  .ipp-magic-panel, .ipp-magic-password-card { padding: 21px 18px; border-radius: 14px; }
  .ipp-magic-panel h2, .ipp-magic-password-card h2 { font-size: 20px; }
  .ipp-customer-login-stage { margin-inline: calc(50% - 50vw); padding: 24px 14px 28px; border-radius: 0; }
  .ipp-customer-login-heading img { width: 77px; height: 77px; }
  .ipp-customer-login-heading h1 { font-size: 25px; }
  .ipp-customer-login-stage .woocommerce-form-login, .ipp-customer-login-stage form.woocommerce-form-login { padding: 21px 18px !important; border-radius: 14px !important; }
  .ipp-native-account-shell { padding: 32px 5vw 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
