:root {
  --auth-text: #13202b;
  --auth-muted: rgba(19, 32, 43, .64);
  --auth-line: rgba(255, 255, 255, .72);
  --auth-blue: #1888ff;
  --auth-cyan: #44d6ff;
  --auth-green: #26d69a;
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--auth-text);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, .8), rgba(224, 231, 239, .94) 76%),
    url("/assets/img/home-liquid/liquid-glass-bg.png") center top / cover no-repeat fixed,
    #e8edf3;
  overflow-x: hidden;
}

body:has(.auth-liquid-page),
body:has(.auth-liquid-page) #content-container,
body:has(.auth-liquid-page) main.content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  width: 520px;
  height: 260px;
  left: -80px;
  top: 160px;
  border-radius: 44% 56% 48% 52% / 54% 36% 64% 46%;
  border: 1px solid rgba(255,255,255,.82);
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,1), rgba(255,255,255,.42) 34%, rgba(198,212,225,.28) 68%),
    rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 30px 110px rgba(111,137,162,.18);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  animation: authBlob 12s ease-in-out infinite;
}

body::after {
  width: 128px;
  height: 128px;
  right: 14%;
  top: 22%;
  border-radius: 56% 44% 50% 50% / 44% 48% 52% 56%;
  border: 1px solid rgba(255,255,255,.88);
  background:
    radial-gradient(circle at 31% 22%, rgba(255,255,255,.98) 0 10%, rgba(255,255,255,.44) 17%, transparent 31%),
    radial-gradient(circle at 68% 76%, rgba(77,182,255,.26), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.18));
  box-shadow:
    inset 10px 10px 26px rgba(255,255,255,.72),
    inset -18px -20px 32px rgba(103,132,160,.18),
    0 18px 44px rgba(93,120,145,.18);
  backdrop-filter: blur(18px) saturate(180%) contrast(112%);
  -webkit-backdrop-filter: blur(18px) saturate(180%) contrast(112%);
  animation: authDrop 9s ease-in-out infinite;
}

.navbar.navbar-white {
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.54);
  box-shadow: 0 18px 60px rgba(83,111,138,.14), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
}

.navbar-white .navbar-brand,
.navbar-white .navbar-nav > li > a {
  color: var(--auth-text);
}

main.content {
  min-height: calc(100vh - 142px);
  padding-top: 82px;
}

.auth-liquid-page {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 470px);
  gap: 56px;
  align-items: center;
  padding: 46px 0 70px;
  box-sizing: border-box;
}

.auth-copy {
  position: relative;
  min-width: 0;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(17,70,101,.84);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--auth-green);
  box-shadow: 0 0 18px rgba(38,214,154,.72);
}

.auth-copy h1 {
  max-width: 690px;
  margin: 18px 0 20px;
  color: var(--auth-text);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 620px;
  color: var(--auth-muted);
  font-size: 18px;
  line-height: 1.85;
}

.auth-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 132px));
  gap: 12px;
  margin-top: 30px;
}

.auth-points span,
.auth-card,
.auth-preview {
  border: 1px solid var(--auth-line);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.96), rgba(255,255,255,.28) 24%, transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.24)),
    rgba(255,255,255,.32);
  box-shadow:
    0 28px 90px rgba(83,111,138,.2),
    0 8px 26px rgba(255,255,255,.42),
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 18px 18px 38px rgba(255,255,255,.18),
    inset -18px -22px 42px rgba(105,129,153,.13);
  backdrop-filter: blur(32px) saturate(185%) contrast(108%);
  -webkit-backdrop-filter: blur(32px) saturate(185%) contrast(108%);
}

.auth-points span {
  min-height: 78px;
  display: grid;
  align-content: center;
  border-radius: 18px;
  padding: 0 16px;
  font-weight: 800;
}

.auth-preview {
  position: relative;
  width: min(420px, 100%);
  min-height: 190px;
  margin-top: 34px;
  border-radius: 26px;
  overflow: hidden;
}

.auth-preview::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.92), rgba(117,207,255,.34), transparent);
  animation: authWave 5.5s ease-in-out infinite alternate;
}

.auth-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 26px;
  padding: 28px;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: -45% -22%;
  background:
    radial-gradient(circle at 20% 50%, rgba(114,232,255,.42), transparent 22%),
    radial-gradient(circle at 54% 44%, rgba(255,255,255,.82), transparent 24%),
    radial-gradient(circle at 84% 56%, rgba(24,136,255,.24), transparent 22%);
  filter: blur(12px);
  opacity: .82;
  animation: authCardWave 5.2s ease-in-out infinite alternate;
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

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

.auth-card-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}

.auth-card-head p {
  margin: 0;
  color: var(--auth-muted);
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.62);
}

.auth-tabs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: rgba(19,32,43,.62);
  font-weight: 800;
  text-decoration: none;
}

.auth-tabs a.active {
  color: var(--auth-text);
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 28px rgba(83,111,138,.12);
}

.auth-card .form-group {
  margin-bottom: 18px;
}

.auth-card .control-label {
  margin-bottom: 8px;
  color: rgba(19,32,43,.82);
  font-weight: 800;
}

.auth-card .form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.72);
  color: var(--auth-text);
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86);
}

.auth-card .form-control:focus {
  border-color: rgba(24,136,255,.48);
  box-shadow: 0 0 0 4px rgba(24,136,255,.1), inset 0 1px 0 rgba(255,255,255,.9);
}

.auth-card .checkbox label,
.auth-card .pull-right a,
.auth-card .help-block {
  color: rgba(19,32,43,.62);
}

.auth-card .btn-primary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 50px;
  border: 0;
  border-radius: 14px;
  color: #06131b;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(126,224,255,.9) 42%, rgba(24,136,255,.86));
  box-shadow: 0 18px 48px rgba(24,136,255,.2);
  font-weight: 800;
}

.auth-card .btn-default {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 14px;
  color: var(--auth-text);
  background: rgba(255,255,255,.48);
  font-weight: 800;
}

.auth-card .input-group .form-control {
  border-radius: 14px 0 0 14px;
}

.auth-card .input-group-btn .btn,
.auth-card .btn-captcha {
  height: 46px;
  border-radius: 0 14px 14px 0;
}

body:has(.auth-liquid-page) .footer,
body .footer {
  background: transparent !important;
  color: rgba(19,32,43,.52) !important;
}

body:has(.auth-liquid-page) .footer .copyright,
body:has(.auth-liquid-page) .footer p,
body:has(.auth-liquid-page) .footer a,
body .footer .copyright,
body .footer p,
body .footer a {
  color: rgba(19,32,43,.58) !important;
}

.auth-card .input-group {
  display: flex;
  width: 100%;
}

.auth-card .input-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
}

.auth-card .input-group-btn {
  width: auto;
  flex: 0 0 auto;
  display: flex;
}

.auth-card .input-group-btn img {
  width: 104px;
  height: 46px;
  object-fit: cover;
  border-radius: 0 14px 14px 0;
  border: 1px solid rgba(255,255,255,.72);
  border-left: 0;
  background: rgba(255,255,255,.62);
}

@keyframes authBlob {
  0%, 100% { transform: translate3d(0,0,0) rotate(-4deg) scale(1); }
  50% { transform: translate3d(34px,-22px,0) rotate(3deg) scale(1.04); }
}

@keyframes authDrop {
  0%, 100% { transform: translate3d(0,0,0) rotate(6deg) scale(1); border-radius: 48% 52% 43% 57% / 52% 46% 54% 48%; }
  50% { transform: translate3d(-24px,22px,0) rotate(-9deg) scale(.96); border-radius: 62% 38% 54% 46% / 42% 58% 42% 58%; }
}

@keyframes authWave {
  from { transform: translateX(-12%) rotate(-7deg); }
  to { transform: translateX(12%) rotate(-3deg); }
}

@keyframes authCardWave {
  from { transform: translateX(-6%) rotate(-3deg) scale(1); }
  to { transform: translateX(8%) rotate(3deg) scale(1.06); }
}

@media (max-width: 980px) {
  .auth-liquid-page {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .auth-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  main.content {
    padding-top: 56px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .auth-liquid-page {
    display: block;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: auto;
    margin: 0;
    padding: 24px 16px 42px;
    overflow: hidden;
  }

  .auth-copy {
    display: none;
  }

  .auth-copy h1 {
    font-size: 34px;
    line-height: 1.12;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .auth-copy p {
    font-size: 15px;
  }

  .auth-points {
    grid-template-columns: 1fr;
  }

  .auth-card {
    width: calc(100vw - 32px) !important;
    min-width: 0;
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto;
    padding: 20px;
    border-radius: 22px;
  }

  .auth-card::before {
    display: none;
  }

  .auth-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-tabs a {
    min-width: 0;
    white-space: nowrap;
  }

  .auth-card .form-group,
  .auth-card .controls,
  .auth-card form,
  .auth-card .auth-row {
    min-width: 0;
    max-width: 100%;
  }

  .auth-card .control-label,
  .auth-tabs,
  .auth-card .form-control,
  .auth-card .btn-block,
  .auth-card .auth-row {
    width: calc(100vw - 72px) !important;
    max-width: calc(100vw - 72px) !important;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .auth-card .control-label {
    display: block;
  }

  .auth-card .auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .auth-card .pull-right {
    float: none !important;
  }

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

  .auth-card .input-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .auth-card .input-group .form-control,
  .auth-card .input-group-btn,
  .auth-card .input-group-btn .btn {
    width: 100%;
    border-radius: 14px;
  }

  .auth-card .input-group-btn img {
    width: 118px;
    max-width: 100%;
    height: 42px;
    border-left: 1px solid rgba(255,255,255,.72);
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .auth-card,
  .auth-preview,
  .auth-points span {
    background: rgba(255,255,255,.88);
  }
}
