/**
 * IT.mk account and authentication screens.
 * Covers WooCommerce My Account inside the theme and the native WordPress
 * login/register/reset screens rendered by wp-login.php.
 */

/* ============================================================= *
 * WooCommerce My Account
 * ============================================================= */
body.woocommerce-account .woocommerce {
  align-items: flex-start;
  color: var(--itmk-text, #16202b);
  display: flex !important;
  flex-wrap: wrap;
  font-family: var(--itmk-font-ui, "Inter", system-ui, sans-serif);
  gap: 20px;
  margin: 28px auto 52px;
  max-width: 1180px;
  width: 100%;
}

body.woocommerce-account .woocommerce::before,
body.woocommerce-account .woocommerce::after {
  content: none;
}

body.woocommerce-account .woocommerce-notices-wrapper,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .u-columns {
  flex: 0 0 100%;
  width: 100% !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 18px;
  flex: 0 0 250px !important;
  float: none !important;
  height: fit-content;
  overflow: hidden;
  padding: 8px;
  position: sticky;
  top: 92px;
  max-width: 250px !important;
  min-width: 250px !important;
  width: 250px !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li {
  border: 0;
  margin: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
  align-items: center;
  border-radius: 11px;
  color: var(--itmk-text, #16202b);
  display: flex;
  font-size: 14px;
  font-weight: 650;
  min-height: 43px;
  padding: 9px 13px;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: var(--itmk-pill, #eef3f8);
  color: var(--itmk-blue, #4d6786);
  transform: translateX(2px);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: #243649;
  color: #fff;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 18px;
  flex: 1 1 0 !important;
  float: none !important;
  min-height: 360px;
  padding: clamp(22px, 3vw, 38px);
  max-width: none !important;
  min-width: 0;
  width: auto !important;
}

/* Bootscore's page/sidebar columns must not constrain the account dashboard. */
body.woocommerce-account #primary > .row > [class*="col-"],
body.woocommerce-account #primary .content-area,
body.woocommerce-account main.site-main,
body.woocommerce-account article,
body.woocommerce-account .entry-content {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.woocommerce-account #secondary,
body.woocommerce-account .widget-area,
body.woocommerce-account aside.sidebar {
  display: none !important;
}

body.woocommerce-account .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-Address-title h2 {
  color: var(--itmk-text, #16202b);
  font-weight: 800;
  letter-spacing: -.015em;
}

body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content address {
  color: var(--itmk-soft-text, #728092);
  font-size: 15px;
  line-height: 1.65;
}

body.woocommerce-account .woocommerce-MyAccount-content a:not(.button) {
  color: var(--itmk-blue, #4d6786);
  font-weight: 650;
}

body.woocommerce-account form .form-row {
  margin: 0 0 17px;
  padding: 0;
}

body.woocommerce-account form label {
  color: var(--itmk-text, #16202b);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 7px;
}

body.woocommerce-account form .input-text,
body.woocommerce-account form input[type="text"],
body.woocommerce-account form input[type="email"],
body.woocommerce-account form input[type="password"],
body.woocommerce-account form input[type="tel"],
body.woocommerce-account form select,
body.woocommerce-account form textarea {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 11px;
  box-shadow: none;
  color: var(--itmk-text, #16202b);
  font-size: 15px;
  min-height: 46px;
  outline: none;
  padding: 10px 13px;
  transition: border-color .16s ease, box-shadow .16s ease;
  width: 100%;
}

body.woocommerce-account form .input-text:focus,
body.woocommerce-account form input:focus,
body.woocommerce-account form select:focus,
body.woocommerce-account form textarea:focus {
  border-color: var(--itmk-blue, #4d6786);
  box-shadow: 0 0 0 3px rgba(77, 103, 134, .14);
}

body.woocommerce-account .button,
body.woocommerce-account button.button,
body.woocommerce-account input.button {
  background: #ed1b2f;
  border: 1px solid #ed1b2f;
  border-radius: 999px;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  min-height: 43px;
  padding: 10px 21px;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

body.woocommerce-account .button:hover,
body.woocommerce-account button.button:hover,
body.woocommerce-account input.button:hover {
  background: #d71326;
  border-color: #d71326;
  color: #fff;
  transform: translateY(-1px);
}

body.woocommerce-account fieldset {
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 14px;
  margin: 24px 0;
  padding: 20px;
}

body.woocommerce-account legend {
  color: var(--itmk-text, #16202b);
  float: none;
  font-size: 15px;
  font-weight: 800;
  padding: 0 8px;
  width: auto;
}

body.woocommerce-account .woocommerce-Addresses {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.woocommerce-account .woocommerce-Address {
  background: var(--itmk-app-bg, #f2f4f6);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 14px;
  float: none;
  padding: 20px;
  width: auto;
}

body.woocommerce-account table.shop_table {
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-collapse: separate;
  border-radius: 14px;
  color: var(--itmk-text, #16202b);
  overflow: hidden;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td {
  border-color: var(--itmk-line, #dfe5eb);
  padding: 13px 14px;
}

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-left: 4px solid #ed1b2f;
  border-radius: 12px;
  color: var(--itmk-text, #16202b);
  margin: 0 0 18px;
  padding: 15px 18px 15px 46px;
}

/* WooCommerce logged-out fallback, should the account page be opened directly. */
body.woocommerce-account .u-columns {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 18px;
  float: none;
  padding: clamp(22px, 3vw, 34px);
  width: auto;
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register {
  border: 0;
  margin: 0;
  padding: 0;
}

[data-bs-theme="dark"] body.woocommerce-account .woocommerce-Address {
  background: var(--itmk-surface-sunken, #202b38);
}

[data-bs-theme="dark"] body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: #526f91;
}

@media (max-width: 767.98px) {
  body.woocommerce-account .woocommerce {
    display: block !important;
    margin: 14px auto 34px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    margin-bottom: 14px;
    overflow-x: auto;
    padding: 7px;
    position: static;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    min-width: max-content;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 39px;
    padding: 8px 12px;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    min-height: 0;
    padding: 20px 17px;
  }

  body.woocommerce-account .woocommerce-Addresses,
  body.woocommerce-account .u-columns {
    grid-template-columns: 1fr;
  }

  body.woocommerce-account table.shop_table_responsive tr {
    border-bottom: 1px solid var(--itmk-line, #dfe5eb);
    padding: 9px;
  }
}

/* ============================================================= *
 * Public front-end authentication pages (with site header/footer)
 * ============================================================= */
body.itmk-public-auth {
  background: var(--itmk-app-bg, #f2f4f6);
}

.itmk-auth-page {
  min-height: min(680px, calc(100vh - 150px));
  padding: clamp(28px, 5vw, 72px) 16px;
}

.itmk-auth-card {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(16, 32, 48, .08);
  color: var(--itmk-text, #16202b);
  margin: 0 auto;
  max-width: 500px;
  padding: clamp(24px, 4vw, 40px);
}

.itmk-auth-card-head {
  margin-bottom: 26px;
  text-align: center;
}

.itmk-auth-card-head h1 {
  color: var(--itmk-text, #16202b);
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}

.itmk-auth-card-head p {
  color: var(--itmk-soft-text, #728092);
  font-size: 14px;
  margin: 8px 0 0;
}

.itmk-auth-form .itmk-auth-field {
  margin-bottom: 17px;
}

.itmk-auth-form label {
  color: var(--itmk-text, #16202b);
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 7px;
}

.itmk-auth-form input[type="text"],
.itmk-auth-form input[type="email"],
.itmk-auth-form input[type="password"] {
  background: var(--itmk-card-bg, #fff);
  border: 1px solid var(--itmk-line, #d5dde5);
  border-radius: 11px;
  box-shadow: none;
  color: var(--itmk-text, #16202b);
  font-size: 16px;
  min-height: 48px;
  outline: none;
  padding: 10px 13px;
  width: 100%;
}

.itmk-auth-form input:focus {
  border-color: var(--itmk-blue, #4d6786);
  box-shadow: 0 0 0 3px rgba(77, 103, 134, .14);
}

.itmk-auth-form-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 4px 0 20px;
}

.itmk-auth-remember {
  align-items: center;
  color: var(--itmk-soft-text, #728092);
  display: flex !important;
  font-weight: 600 !important;
  gap: 7px;
  margin: 0 !important;
}

.itmk-auth-submit {
  background: #ed1b2f;
  border: 1px solid #ed1b2f;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  min-height: 46px;
  padding: 10px 24px;
  transition: background-color .16s ease, transform .16s ease;
  width: 100%;
}

.itmk-auth-submit:hover {
  background: #d71326;
  border-color: #d71326;
  transform: translateY(-1px);
}

.itmk-auth-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  justify-content: center;
  margin-top: 22px;
}

.itmk-auth-links a,
.itmk-auth-form-row a {
  color: var(--itmk-blue, #4d6786);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.itmk-auth-links a:hover,
.itmk-auth-form-row a:hover {
  text-decoration: underline;
}

.itmk-auth-notice {
  background: var(--itmk-pill, #eef3f8);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-left: 4px solid #ed1b2f;
  border-radius: 11px;
  color: var(--itmk-text, #16202b);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.itmk-auth-notice.is-success {
  border-left-color: var(--itmk-green, #68b600);
}

.itmk-auth-notice ul {
  margin: 0;
  padding-left: 18px;
}

[data-bs-theme="dark"] .itmk-auth-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}

[data-bs-theme="dark"] .itmk-auth-form input[type="text"],
[data-bs-theme="dark"] .itmk-auth-form input[type="email"],
[data-bs-theme="dark"] .itmk-auth-form input[type="password"] {
  background: var(--itmk-surface-sunken, #202b38);
}

@media (max-width: 520px) {
  .itmk-auth-page {
    padding: 18px 12px 34px;
  }

  .itmk-auth-card {
    border-radius: 18px;
    padding: 23px 18px;
  }

  .itmk-auth-form-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public auth presentation: a compact branded split layout that keeps the
 * normal site header and footer visible. These rules intentionally follow the
 * base form rules above so the same markup remains usable without JavaScript. */
body.itmk-public-auth .itmk-auth-page {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(77, 103, 134, .055) 1px, transparent 1px),
    var(--itmk-app-bg, #f2f4f6);
  background-size: 42px 42px, auto;
  display: flex;
  min-height: clamp(660px, calc(100vh - 74px), 820px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 68px) 20px;
  position: relative;
}

.itmk-auth-shell {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.itmk-auth-aside {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), transparent 48%),
    linear-gradient(145deg, #172534 0%, #253b50 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(16, 32, 48, .18);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 570px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  position: relative;
}

.itmk-auth-aside::after {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 19px);
  bottom: 0;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.itmk-auth-aside-top,
.itmk-auth-benefits,
.itmk-auth-secure {
  position: relative;
  z-index: 1;
}

.itmk-auth-badge {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 7px;
  letter-spacing: .035em;
  padding: 7px 11px;
  text-transform: uppercase;
}

.itmk-auth-badge .bi {
  color: #ff5363;
  font-size: 14px;
}

.itmk-auth-aside h2 {
  color: #fff;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.12;
  margin: 30px 0 14px;
}

.itmk-auth-aside-top > p {
  color: #bac8d5;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
  max-width: 390px;
}

.itmk-auth-benefits {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 34px 0;
  padding: 0;
}

.itmk-auth-benefits li {
  align-items: center;
  color: #edf3f8;
  display: grid;
  font-size: 13px;
  font-weight: 650;
  gap: 12px;
  grid-template-columns: 36px 1fr;
  line-height: 1.4;
}

.itmk-auth-benefits .bi {
  align-items: center;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  color: #ff5363;
  display: flex;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.itmk-auth-robot-line {
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  gap: clamp(9px, 1.4vw, 16px);
  justify-content: center;
  margin: 0 0 24px;
  min-height: 54px;
  overflow: hidden;
  padding: 5px 5px 8px;
  position: relative;
  z-index: 1;
}

.itmk-pixel-bot {
  animation: itmk-auth-bot-walk 3.4s ease-in-out infinite;
  color: #eef5fa;
  display: block;
  flex: 0 0 29px;
  height: 42px;
  opacity: .92;
  position: relative;
  transform-origin: 50% 100%;
  width: 29px;
}

.itmk-pixel-bot::before {
  border: 2px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  top: 5px;
  width: 23px;
}

.itmk-pixel-bot::after {
  border: 2px solid currentColor;
  border-radius: 2px;
  content: "";
  height: 13px;
  left: 6px;
  position: absolute;
  top: 26px;
  width: 17px;
}

.itmk-pixel-bot > i {
  background: currentColor;
  box-shadow:
    9px 0 0 currentColor,
    4px -10px 0 -1px currentColor,
    -8px 22px 0 -1px currentColor,
    17px 22px 0 -1px currentColor;
  height: 3px;
  left: 9px;
  position: absolute;
  top: 13px;
  width: 3px;
}

.itmk-pixel-bot:nth-child(2n) {
  animation-name: itmk-auth-bot-wave;
  color: #ff5363;
}

.itmk-pixel-bot:nth-child(2) { animation-delay: -.45s; }
.itmk-pixel-bot:nth-child(3) { animation-delay: -.9s; }
.itmk-pixel-bot:nth-child(4) { animation-delay: -1.35s; }
.itmk-pixel-bot:nth-child(5) { animation-delay: -1.8s; }
.itmk-pixel-bot:nth-child(6) { animation-delay: -2.25s; }
.itmk-pixel-bot:nth-child(7) { animation-delay: -2.7s; }

@keyframes itmk-auth-bot-walk {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-4px) rotate(-2deg); }
  55% { transform: translateY(-4px) rotate(2deg); }
}

@keyframes itmk-auth-bot-wave {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-6px) rotate(4deg); }
  60% { transform: translateY(-2px) rotate(-3deg); }
}

.itmk-auth-secure {
  align-items: center;
  color: #9eafbf;
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin: 0;
}

.itmk-auth-card {
  align-self: stretch;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding: clamp(28px, 4vw, 44px);
}

.itmk-auth-switcher {
  background: var(--itmk-pill, #eef3f8);
  border: 1px solid var(--itmk-line, #dfe5eb);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
  padding: 4px;
}

.itmk-auth-switcher a {
  border-radius: 8px;
  color: var(--itmk-soft-text, #718095);
  font-size: 13px;
  font-weight: 750;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.itmk-auth-switcher a.is-active {
  background: var(--itmk-card-bg, #fff);
  box-shadow: 0 3px 11px rgba(16, 32, 48, .08);
  color: var(--itmk-text, #16202b);
}

.itmk-auth-card-head {
  margin-bottom: 26px;
  text-align: left;
}

.itmk-auth-eyebrow {
  color: #ed1b2f;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .065em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.itmk-auth-card-head h1 {
  font-size: clamp(28px, 4vw, 36px);
}

.itmk-auth-card-head p {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 9px;
}

.itmk-auth-form .itmk-auth-field {
  margin-bottom: 16px;
}

.itmk-auth-input {
  position: relative;
}

.itmk-auth-input > .bi {
  color: #8997a7;
  font-size: 17px;
  left: 15px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.itmk-auth-form .itmk-auth-input input[type="text"],
.itmk-auth-form .itmk-auth-input input[type="email"],
.itmk-auth-form .itmk-auth-input input[type="password"] {
  min-height: 51px;
  padding-left: 44px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.itmk-auth-form input::placeholder {
  color: #9ba7b4;
  opacity: 1;
}

.itmk-auth-form-row {
  margin: 2px 0 21px;
}

.itmk-auth-remember input {
  accent-color: #ed1b2f;
  height: 16px;
  margin: 0;
  width: 16px;
}

.itmk-auth-submit {
  align-items: center;
  box-shadow: 0 8px 20px rgba(237, 27, 47, .18);
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 49px;
}

.itmk-auth-submit .bi {
  font-size: 16px;
  transition: transform .16s ease;
}

.itmk-auth-submit:hover .bi {
  transform: translateX(3px);
}

.itmk-auth-help {
  align-items: flex-start;
  background: var(--itmk-pill, #eef3f8);
  border-radius: 10px;
  color: var(--itmk-soft-text, #728092);
  display: flex;
  font-size: 12px;
  gap: 9px;
  line-height: 1.45;
  margin: 2px 0 20px;
  padding: 11px 12px;
}

.itmk-auth-help .bi {
  color: var(--itmk-blue, #4d6786);
  flex: 0 0 auto;
  font-size: 14px;
  margin-top: 1px;
}

.itmk-auth-links {
  background: var(--itmk-surface-sunken, #f7f9fb);
  border-radius: 10px;
  font-size: 13px;
  margin-top: 18px;
  padding: 12px;
}

.itmk-auth-notice {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.itmk-auth-notice > .bi {
  color: #ed1b2f;
  flex: 0 0 auto;
  margin-top: 2px;
}

.itmk-auth-notice.is-success > .bi {
  color: var(--itmk-green, #68b600);
}

[data-bs-theme="dark"] body.itmk-public-auth .itmk-auth-page {
  background:
    linear-gradient(135deg, rgba(142, 168, 194, .045) 1px, transparent 1px),
    var(--itmk-app-bg, #101923);
  background-size: 42px 42px, auto;
}

@media (prefers-reduced-motion: reduce) {
  .itmk-pixel-bot {
    animation: none;
  }
}

[data-bs-theme="dark"] .itmk-auth-switcher a.is-active {
  box-shadow: 0 3px 13px rgba(0, 0, 0, .22);
}

@media (max-width: 900px) {
  body.itmk-public-auth .itmk-auth-page {
    min-height: 0;
    padding: 30px 16px 42px;
  }

  .itmk-auth-shell {
    grid-template-columns: 1fr;
    max-width: 580px;
  }

  .itmk-auth-aside {
    min-height: 0;
    padding: 26px 28px;
  }

  .itmk-auth-aside h2 {
    font-size: 27px;
    margin-top: 20px;
  }

  .itmk-auth-benefits {
    grid-template-columns: repeat(3, 1fr);
    margin: 26px 0 22px;
  }

  .itmk-auth-benefits li {
    align-content: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.itmk-public-auth .itmk-auth-page {
    background: var(--itmk-app-bg, #f2f4f6);
    padding: 18px 12px 32px;
  }

  .itmk-auth-shell {
    display: grid;
    gap: 10px;
  }

  .itmk-auth-aside {
    border-radius: 16px;
    display: block;
    min-height: 0;
    padding: 7px 14px;
  }

  .itmk-auth-aside-top,
  .itmk-auth-benefits,
  .itmk-auth-secure {
    display: none;
  }

  .itmk-auth-robot-line {
    border: 0;
    margin: 0;
    min-height: 51px;
    padding-bottom: 4px;
  }

  .itmk-auth-card {
    border-radius: 18px;
    padding: 21px 18px 23px;
  }

  .itmk-auth-switcher {
    margin-bottom: 25px;
  }

  .itmk-auth-card-head {
    margin-bottom: 22px;
  }

  .itmk-auth-card-head h1 {
    font-size: 28px;
  }

  .itmk-auth-form-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 390px) {
  .itmk-auth-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================================================= *
 * Native WordPress login / register / password reset
 * ============================================================= */
html body.login {
  align-items: center;
  background: #f2f4f6;
  color: #16202b;
  display: flex;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

body.login::before,
body.login::after {
  border-radius: 50%;
  content: "";
  filter: blur(1px);
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body.login::before {
  background: rgba(237, 27, 47, .08);
  height: 360px;
  left: -140px;
  top: -150px;
  width: 360px;
}

body.login::after {
  background: rgba(77, 103, 134, .10);
  bottom: -170px;
  height: 420px;
  right: -160px;
  width: 420px;
}

body.login #login {
  background: #fff;
  border: 1px solid #dfe5eb;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(16, 32, 48, .10);
  box-sizing: border-box;
  margin: auto;
  max-width: 440px;
  padding: 30px;
  position: relative;
  width: 100%;
  z-index: 1;
}

body.login h1 {
  margin: 0 0 18px;
}

body.login h1 a {
  background-image: url("../img/logo/logo-small@2x.png");
  background-position: center;
  background-size: contain;
  height: 58px;
  margin: 0 auto;
  width: 74px;
}

body.login .itmk-auth-intro {
  margin: 0 0 22px;
  text-align: center;
}

body.login .itmk-auth-intro strong,
body.login .itmk-auth-intro span {
  display: block;
}

body.login .itmk-auth-intro strong {
  color: #16202b;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

body.login .itmk-auth-intro span {
  color: #728092;
  font-size: 14px;
  margin-top: 6px;
}

body.login form {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  overflow: visible;
  padding: 0;
}

body.login label {
  color: #263544;
  font-size: 13px;
  font-weight: 700;
}

body.login form .input,
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
  background: #fff;
  border: 1px solid #d5dde5;
  border-radius: 11px;
  box-shadow: none;
  color: #16202b;
  font-size: 16px;
  margin: 7px 0 16px;
  min-height: 48px;
  padding: 10px 13px;
}

body.login form .input:focus,
body.login input:focus {
  border-color: #4d6786;
  box-shadow: 0 0 0 3px rgba(77, 103, 134, .14);
  outline: none;
}

body.login .wp-pwd button.button {
  color: #4d6786;
  margin-top: 7px;
}

body.login .button-primary {
  background: #ed1b2f;
  border: 1px solid #ed1b2f;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 750;
  min-height: 44px;
  padding: 6px 22px;
  text-shadow: none;
  transition: background-color .16s ease, transform .16s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
  background: #d71326;
  border-color: #d71326;
  box-shadow: 0 0 0 3px rgba(237, 27, 47, .14);
  transform: translateY(-1px);
}

body.login .forgetmenot {
  align-items: center;
  display: flex;
  min-height: 44px;
}

body.login #nav,
body.login #backtoblog {
  font-size: 13px;
  margin: 18px 0 0;
  padding: 0;
  text-align: center;
}

body.login #backtoblog {
  margin-top: 10px;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-link {
  color: #4d6786;
  font-weight: 650;
  text-decoration: none;
}

body.login #login_error,
body.login .message,
body.login .success {
  background: #f8fafc;
  border: 1px solid #dfe5eb;
  border-left: 4px solid #ed1b2f;
  border-radius: 10px;
  box-shadow: none;
  color: #263544;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 14px;
}

body.login .language-switcher {
  margin: 18px auto 0;
  position: relative;
  z-index: 1;
}

html[data-bs-theme="dark"] body.login {
  background: #101720;
  color: #e8eef6;
}

html[data-bs-theme="dark"] body.login #login {
  background: #17212c;
  border-color: rgba(148, 163, 184, .22);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .32);
}

html[data-bs-theme="dark"] body.login h1 a {
  filter: brightness(0) invert(1);
}

html[data-bs-theme="dark"] body.login .itmk-auth-intro strong,
html[data-bs-theme="dark"] body.login label {
  color: #e8eef6;
}

html[data-bs-theme="dark"] body.login .itmk-auth-intro span {
  color: #9aa8ba;
}

html[data-bs-theme="dark"] body.login form .input,
html[data-bs-theme="dark"] body.login input[type="text"],
html[data-bs-theme="dark"] body.login input[type="email"],
html[data-bs-theme="dark"] body.login input[type="password"] {
  background: #202b38;
  border-color: rgba(148, 163, 184, .28);
  color: #e8eef6;
}

html[data-bs-theme="dark"] body.login #login_error,
html[data-bs-theme="dark"] body.login .message,
html[data-bs-theme="dark"] body.login .success {
  background: #202b38;
  border-color: rgba(148, 163, 184, .22);
  border-left-color: #ff5262;
  color: #e8eef6;
}

html[data-bs-theme="dark"] body.login #nav a,
html[data-bs-theme="dark"] body.login #backtoblog a,
html[data-bs-theme="dark"] body.login .privacy-policy-link {
  color: #b4c7dd;
}

@media (max-width: 520px) {
  html body.login {
    align-items: flex-start;
    padding: 14px;
  }

  body.login #login {
    border-radius: 18px;
    margin-top: 18px;
    padding: 24px 20px;
  }
}
