@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Exo+2:wght@500;600;700&family=Jura:wght@500&family=Orbitron:wght@500;600;700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  scrollbar-color: rgba(13, 202, 240, .34) rgba(5, 8, 11, .72);
  scrollbar-width: thin;
  min-height: 100%;
  margin: 0;
}

* {
  scrollbar-color: rgba(13, 202, 240, .34) rgba(5, 8, 11, .72);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(5, 8, 11, .72);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(13, 202, 240, .34);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 202, 240, .56);
  background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow-x: hidden;
  background: #05070f;
  color: #e2e8f0;
  font-family: "Barlow", sans-serif;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/assets/background.webp") center / cover no-repeat;
  filter: blur(3px) brightness(.58);
  transform: scale(1.02);
}

body.auth-page--login::before {
  background-image: url("/assets/media/auth/login-background-poster.webp");
  filter: brightness(.66) saturate(1.04);
  transform: none;
}

.auth-background-video {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #05070f;
  filter: brightness(.68) saturate(1.06) contrast(1.03);
  pointer-events: none;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(3, 7, 18, .82) 0%, rgba(8, 18, 38, .64) 45%, rgba(14, 116, 144, .36) 100%),
    radial-gradient(circle at 50% 20%, rgba(14, 165, 233, .18), transparent 42%);
}

.auth-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(13, 202, 240, .08), transparent 34%),
    linear-gradient(135deg, rgba(0, 0, 0, .99), rgba(2, 5, 9, .98) 58%, rgba(0, 0, 0, .99));
  opacity: 1;
  visibility: visible;
  transition: opacity .46s ease, visibility .46s ease;
}

body.auth-is-preloading .auth-screen,
body.auth-is-preloading .cookie-consent {
  opacity: 0;
  visibility: hidden;
}

.auth-screen,
.cookie-consent {
  opacity: 1;
  visibility: visible;
  transition: opacity .42s ease .08s, visibility .42s ease .08s;
}

.auth-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-preloader__media {
  width: min(72vw, 360px);
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, .54)) drop-shadow(0 0 18px rgba(13, 202, 240, .1));
}

.auth-screen {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .auth-background-video {
    display: none;
  }

  .auth-preloader {
    transition: none;
  }
}

.auth-card {
  width: min(90vw, 420px);
  margin-right: auto;
  margin-left: auto;
  padding: 2.5rem 2rem;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(13, 202, 240, .025), rgba(11, 13, 16, 0) 260px),
    rgba(17, 22, 27, .6);
  box-shadow: 0 24px 80px rgba(2, 8, 12, .5);
  backdrop-filter: blur(12px);
}

.auth-card--wide {
  width: min(92vw, 460px);
}

.auth-card--verify {
  width: min(92vw, 420px);
  padding: 2rem 1.8rem;
}

.auth-card--register {
  width: min(94vw, 560px);
  padding: 1.35rem 1.5rem;
}

.auth-card--legal {
  width: min(94vw, 920px);
  padding: clamp(1.5rem, 3vw, 2.35rem);
}

.auth-card--register .auth-brand {
  margin-bottom: 0.7rem;
}

.auth-card--register .auth-brand__logo {
  width: min(230px, 100%);
}

.auth-card--register .auth-title {
  margin-bottom: 1rem;
}

.auth-card--register .auth-subtitle {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
}

.auth-card--register .mb-3 {
  margin-bottom: 0.65rem !important;
}

.auth-card--register .form-control,
.auth-card--register .form-select {
  min-height: 38px;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.auth-card--register .form-text {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}

.auth-card--register .form-check-label {
  font-size: 0.86rem;
}

.auth-card--center {
  text-align: center;
}

.auth-brand {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-brand__logo {
  width: min(300px, 100%);
  height: auto;
}

.auth-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #0dcaf0 0%, #18b7d4 52%, #f5c542 100%);
  background-clip: text;
  color: transparent;
  font-weight: 600;
  font-family: "Exo 2", "Barlow", sans-serif;
  text-align: center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-title--compact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-bottom: .7rem;
  font-size: 1.32rem;
  line-height: 1.2;
}

.auth-title--compact i {
  color: #f5c542;
  font-size: 1.1rem;
  -webkit-text-fill-color: #f5c542;
}

.auth-subtitle {
  margin: -0.75rem 0 1.25rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  text-align: center;
}

.auth-subtitle--verify {
  margin: 0 0 1.35rem;
  line-height: 1.5;
}

.auth-copy {
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.auth-card label {
  color: #cbd5e1;
  font-weight: 500;
}

.auth-card .form-text {
  color: #94a3b8;
}

.auth-card .form-check {
  padding-left: 1.75rem;
}

.auth-card .form-check-input {
  border-color: #0dcaf0;
  background-color: #1f1f1f;
}

.auth-card .form-check-input:checked {
  border-color: #0dcaf0;
  background-color: #0dcaf0;
}

.auth-card .form-check-label {
  color: #dbeafe;
  font-size: 0.94rem;
  line-height: 1.35;
}

.auth-card .form-control,
.auth-card .form-select,
.auth-card .input-group-text {
  border: 1px solid #333333;
  background: #1f1f1f;
  color: #e2e8f0;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: #0dcaf0;
  background: #2a2a2a;
  box-shadow: 0 0 0 .25rem rgba(13, 202, 240, .22);
  color: #fff;
}

.auth-card .form-select {
  color-scheme: dark;
}

.auth-phone-group .auth-phone-prefix {
  min-width: 70px;
  gap: 7px;
  justify-content: center;
  border-right: 0;
  padding-inline: 9px;
}

.auth-phone-flag__image {
  display: block;
  width: 28px;
  height: 21px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

.auth-phone-flag__image[hidden],
.auth-phone-flag__empty[hidden] {
  display: none;
}

.auth-phone-flag__empty {
  color: rgba(255, 255, 255, .48);
  font-size: .86rem;
  font-weight: 700;
}

.auth-phone-prefix__code {
  color: #fff;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.auth-phone-group .form-control {
  border-left: 0;
}

.auth-phone-group:focus-within .auth-phone-prefix {
  border-color: #0dcaf0;
  background: #2a2a2a;
}

.auth-card .form-control::placeholder {
  color: #0dcaf0;
  opacity: .45;
}

.auth-code-input {
  min-height: 48px;
  font-family: "Orbitron", "Exo 2", monospace;
  font-size: 1.16rem;
  letter-spacing: .32rem;
  text-align: center;
}

.auth-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-card .btn-primary {
  border: none;
  background: #0c8eb5;
  font-weight: 600;
  transition: background .2s, box-shadow .2s;
}

.auth-card .btn-primary:hover {
  background: #0dcaf0;
  box-shadow: 0 0 10px rgba(13, 202, 240, .45);
}

.auth-card .btn-light {
  width: 100%;
  border: none;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}

.auth-card .btn-light:hover {
  background: #e2e8f0;
}

.auth-card .alert-danger {
  border: none;
  background: #7f1d1d;
  color: #fecaca;
}

.auth-card .alert-success {
  border: none;
  background: #14532d;
  color: #bbf7d0;
}

.auth-link {
  display: block;
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: .95rem;
  text-align: center;
}

.auth-link a {
  color: #0dcaf0;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.auth-legal-links {
  display: flex;
  gap: .45rem;
  justify-content: center;
  margin-top: .65rem;
  color: #64748b;
  font-size: .82rem;
}

.auth-screen--legal {
  align-items: flex-start;
  padding-top: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.legal-kicker {
  margin: 0 0 .35rem;
  color: #f5c542;
  font-family: "Exo 2", "Barlow", sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.legal-title {
  margin-bottom: .45rem;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
}

.legal-updated {
  margin: 0 0 1.8rem;
  color: #94a3b8;
  font-size: .92rem;
  text-align: center;
}

.legal-section {
  padding: 1.05rem 0;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.legal-section h2 {
  margin: 0 0 .55rem;
  color: #e0f2fe;
  font-family: "Exo 2", "Barlow", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.legal-section p {
  margin: 0 0 .65rem;
  color: #cbd5e1;
  font-size: .98rem;
  line-height: 1.62;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section a,
.auth-card .form-check-label a {
  color: #38d5f8;
  font-weight: 600;
  text-decoration: none;
}

.legal-section a:hover,
.auth-card .form-check-label a:hover {
  text-decoration: underline;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(13, 202, 240, .24);
}

.legal-actions .btn {
  min-width: 160px;
}

@media (max-height: 760px) {
  .auth-screen {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
