* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #000;
  color: #fff;
}

.custom-auth-wrapper {
  --primary: #e63888;
  --black: #000000;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);

  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  isolation: isolate;
  background:
    radial-gradient(circle at 16% 18%, rgba(230, 56, 136, 0.26) 0%, rgba(230, 56, 136, 0) 34%),
    radial-gradient(circle at 86% 16%, rgba(230, 56, 136, 0.14) 0%, rgba(230, 56, 136, 0) 32%),
    radial-gradient(circle at 50% 100%, rgba(230, 56, 136, 0.16) 0%, rgba(230, 56, 136, 0) 42%),
    linear-gradient(135deg, #060606 0%, #000000 54%, #16040d 100%);
}

.custom-auth-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0) 42%, rgba(230,56,136,0.055) 100%);
}

.custom-auth-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
}

.hair-login-waves {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.45s ease-out;
}

.hair-login-wave {
  position: absolute;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: hair-login-float var(--duration) linear var(--delay) infinite;
  will-change: transform, opacity;
}

@keyframes hair-login-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotate));
    opacity: 0;
  }
  12% {
    opacity: var(--max-opacity);
  }
  100% {
    transform: translate3d(var(--drift), -125vh, 0) rotate(calc(var(--rotate) + 12deg));
    opacity: 0;
  }
}

.custom-auth-container {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  text-align: center;
}

.custom-auth-logo-mark {
  width: 200px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 56, 136, 0.12);
  box-shadow: 0 18px 46px rgba(230, 56, 136, 0.24);
  backdrop-filter: blur(12px);
}

.custom-auth-logo-mark svg {
  width: 180px;
  height: auto;
  display: block;
  overflow: visible;
}

.custom-auth-container h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -0.045em;
}

.custom-auth-container > p {
  margin: 0 auto 26px;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.custom-auth-card {
  position: relative;
  padding: 30px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 84px rgba(0,0,0,0.45);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.custom-auth-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(230,56,136,0.95), rgba(255,255,255,0.08), rgba(230,56,136,0.20));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.custom-auth-card::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -44px;
  width: 230px;
  height: 112px;
  border: 20px solid rgba(230, 56, 136, 0.13);
  border-radius: 999px;
  transform: rotate(-18deg);
  filter: blur(1px);
  pointer-events: none;
}

.custom-auth-form {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.custom-auth-field {
  margin-bottom: 14px;
  text-align: left;
}

.custom-auth-form label {
  display: block;
  margin: 0 0 7px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 600;
}

.custom-auth-form input[type="text"],
.custom-auth-form input[type="password"],
.custom-auth-form input[type="email"],
.custom-auth-form input[type="tel"] {
  display: block;
  width: 100%;
  appearance: none;
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(0, 0, 0, 0.26);
  border-radius: 999px;
  padding: 14px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.custom-auth-form input[type="text"]::placeholder,
.custom-auth-form input[type="password"]::placeholder,
.custom-auth-form input[type="email"]::placeholder,
.custom-auth-form input[type="tel"]::placeholder {
  color: rgba(255,255,255,0.42);
}

.custom-auth-form input[type="text"]:hover,
.custom-auth-form input[type="password"]:hover,
.custom-auth-form input[type="email"]:hover,
.custom-auth-form input[type="tel"]:hover {
  background-color: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.24);
}

.custom-auth-form input[type="text"]:focus,
.custom-auth-form input[type="password"]:focus,
.custom-auth-form input[type="email"]:focus,
.custom-auth-form input[type="tel"]:focus {
  background-color: rgba(255,255,255,0.095);
  border-color: rgba(230,56,136,0.86);
  box-shadow: 0 0 0 4px rgba(230,56,136,0.16);
}

.custom-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
}

.login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  cursor: pointer;
}

.custom-auth-form input[type="checkbox"] {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.22);
  cursor: pointer;
  position: relative;
}

.custom-auth-form input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-auth-form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lost-password-link {
  color: #ffd3e7;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.lost-password-link:hover {
  color: var(--primary);
}

.custom-auth-form button[type="submit"],
.custom-auth-form input[type="submit"],
.woocommerce-button.button.woocommerce-form-login__submit {
  width: 100%;
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  text-transform: none;
  box-shadow: 0 16px 34px rgba(230, 56, 136, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.custom-auth-form button[type="submit"]:hover,
.custom-auth-form input[type="submit"]:hover,
.woocommerce-button.button.woocommerce-form-login__submit:hover {
  transform: translateY(-2px);
  background: #d92d7a;
  box-shadow: 0 20px 42px rgba(230, 56, 136, 0.40);
}

.custom-auth-footer {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  text-align: center;
}

.custom-auth-footer p {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 14px;
  line-height: 1.6;
}

.custom-auth-footer a {
  color: #ffd3e7;
  text-decoration: none;
  font-weight: 650;
}

.custom-auth-footer a:hover {
  color: var(--primary);
}

.custom-auth-error,
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  position: relative;
  z-index: 3;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 18px;
  list-style: none;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.custom-auth-error,
.woocommerce-error {
  background: rgba(248, 215, 218, 0.12);
  color: #ffd4da;
  border-color: rgba(248, 215, 218, 0.24);
}

.woocommerce-info,
.woocommerce-message {
  background: rgba(230, 56, 136, 0.12);
  color: #ffe0ed;
  border-color: rgba(230, 56, 136, 0.28);
}

.hide-header-footer header,
.hide-header-footer footer {
  display: none;
}

@media (max-width: 560px) {
  .custom-auth-wrapper {
    padding: 42px 16px;
  }

  .custom-auth-card {
    padding: 24px 20px;
    border-radius: 26px;
  }

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

  .lost-password-link {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hair-login-wave {
    animation: none;
    opacity: 0.14 !important;
  }

  .hair-login-waves {
    transform: none !important;
  }

  * {
    transition: none !important;
  }
}
  

/* ---- Hairsera B2B: papildymai registracijai / atkūrimui ---- */

.login-remember {
  margin: 0;
}

.custom-auth-container.is-wide {
  width: min(620px, 100%);
}

.custom-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.custom-auth-grid .is-full {
  grid-column: 1 / -1;
}

.custom-auth-form label .req {
  color: var(--primary);
}

.custom-auth-consent {
  margin: 4px 0 18px;
  text-align: left;
}

.custom-auth-form .custom-auth-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.custom-auth-consent input[type="checkbox"] {
  margin-top: 1px;
}

.custom-auth-consent a {
  color: #ffd3e7;
}

.custom-auth-consent a:hover {
  color: var(--primary);
}

ul.woocommerce-error li {
  margin: 0;
}

ul.woocommerce-error li + li {
  margin-top: 4px;
}

.hsb2b-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.custom-auth-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.custom-auth-form button:focus-visible,
.custom-auth-form input[type="checkbox"]:focus-visible,
.custom-auth-wrapper a:focus-visible {
  outline: 2px solid #ffd3e7;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .custom-auth-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Registracija pateikta ---- */

.custom-auth-done {
  text-align: center;
}

.custom-auth-done-icon {
  width: 56px;
  height: 56px;
  margin: 2px auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(230, 56, 136, 0.32);
}

.custom-auth-done-icon svg {
  width: 26px;
  height: 26px;
}

.custom-auth-done p {
  margin: 0 0 12px;
  color: rgba(255,255,255,0.86);
  font-size: 15px;
  line-height: 1.65;
}

.custom-auth-done .custom-auth-done-note {
  margin-bottom: 22px;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
}

.custom-auth-done-btn {
  display: block;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.custom-auth-done-btn:hover {
  border-color: var(--primary);
  background: rgba(230, 56, 136, 0.12);
}
