
:root{
  --bg: #001C25;
  --accent: #43D9FB;
  --glow: 67, 217, 251;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Montserrat;
  background: var(--bg);
  color: var(--white);
}

.login-page{
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card{
  position: relative;
  width: 420px;
  max-width: 92vw;
}

.login-page .bg-image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
}

.btn-outline{
  height: 50px;
  width: auto;
  margin: 0 auto;
  border-radius: 15px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-outline:hover{
  background: rgba(67, 217, 251, 0.06);
  box-shadow: 0 0 12px rgba(67, 217, 251, 0.35);
}
.btn-outline:active{
  transform: translateY(1px);
}

/* glows */
.glow{
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(var(--glow), 1));
}
/* brain */
.glow-a{
  left: 391px;
  top: 300px;
  transform: rotate(-16deg);
  transform-origin: top left;
}
/* planet */
.glow-c{
  width: 81px;
  left: 679px;
  top: 130px;
}
/* dices */
.glow-b{
  width: 70px;
  left: 1400px;
  top: 440px;
}
/* rocket */
.glow-d{
  width: 80px;
  left: 1349px;
  top: 700px;
}
/* galaxy */
.glow-e{
  width: 200px;
  height: auto;
  bottom: 0px;
  left: 0px;
}
/* atom */
.glow-f{
  width: 63px;
  left: 599px;
  top: 630px;
  transform: rotate(-13deg);
  transform-origin: top left;
}
/* ufo */
.glow-g{
  width: 72px;
  left: 1470px;
  top: 172px;
  transform: rotate(17deg);
  opacity: .50;
}
/* ABP logo */
.glow-h{
  width: 100px;
  height: auto;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  filter: drop-shadow(0 0 5px rgba(var(--glow), 1)) !important;
}

@media (max-width: 1024px) {
  .btn-outline{
    width: 100%;
  }
  .glow {
    opacity: 0.9;
  }
  .glow:not(.glow-h) {
    transform: scale(0.9);
  }
  .glow-a {
    top: 12%;
    left: 4%;
  }
  .glow-b {
    top: 60%;
    left: auto;
    right: -2%;
  }
  .glow-c {
    top: 10%;
    left: auto;
    right: 4%;
  }
  .glow-d {
    top: 75%;
    left: auto;
    right: 6%;
  }
  .glow-e {
    display: none;
  }
  .glow-f {
    top: 70%;
    left: 6%;
  }
  .glow-g {
    top: 18%;
    left: auto;
    right: 2%;
  }
  .glow-h {
    bottom: 20px;
    transform: translateX(-50%) scale(0.9);
  }
}

@media (max-width: 600px) {
  .btn-outline{
    width: 100%;
  }
  .glow {
    opacity: 0.7;
  }
  .glow:not(.glow-h) {
    transform: scale(0.7);
  }
  .glow-a {
    top: 16%;
    left: 30%;
  }
  .glow-c {
    top: 8%;
    right: 2%;
  }
  .glow-b {
    top: auto;
    bottom: 30%;
    right: 15%;
  }
  .glow-d {
    top: auto;
    bottom: 10%;
    right: 60%;
  }
  .glow-e {
    display: none;
  }
  .glow-f {
    top: auto;
    bottom: 18%;
    left: 89%;
  }
  .glow-g {
    top: 3%;
    right: 73%;
  }
  .glow-h {
    bottom: 20px;
    transform: translateX(-50%) scale(0.7);
  }
}


.sr-only{
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.logo-tb{
  position: relative;
  width: 275px;
  height: 150px;
  margin: 12px auto 12px;
}

/* Team Game Logo */
.brand-logo{
  position: absolute;
  left: 0;
  top: 0;
  width: 275px;
  margin: auto;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 5px rgba(67, 217, 251, 2.35));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

/* Form */
.login-form{
  display: grid;
  gap: 30px;
}
.form-row{ position: relative; }
.login-page .login-card input.form-control.input-field:-webkit-autofill,
.login-page .login-card input.form-control.input-field:-webkit-autofill:hover,
.login-page .login-card input.form-control.input-field:-webkit-autofill:focus{
  -webkit-text-fill-color: #E7EDEF !important;
  caret-color:#EAF7FF;
  transition: background-color 9999s ease-in-out 0s !important;

  -webkit-box-shadow: 0px 0px 10px rgba(67, 217.27, 251, 0.20) inset !important;
  box-shadow: 0px 0px 10px rgba(67, 217.27, 251, 0.20) !important;
}
.input-field {
  border-radius: 15px !important;
  border: 1px solid rgba(67, 217, 251, 0.20) !important;
  background: rgba(159, 190, 201, 0.15) !important;
  box-shadow: 0 0 10px rgba(67, 217, 251, 0.20);
  width: 100%;
  height: 50px;
  padding: 13px 16px 13px 20px !important;
  color: var(--white) !important;
  font-size: 16px;
  outline: none;
  transition: 
    box-shadow .2s ease,
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease;
}
.input-field::placeholder {
  color: #6EAAC8;
  opacity: 1;
}
/* --- Normal --- */
.input-field:not(:focus):not(.is-error) {
  border-color: rgba(67, 217, 251, 0.20);
  box-shadow: 0 0 10px rgba(67, 217, 251, 0.20);
  color: #6EAAC8 !important;
}
/* --- Active (фокус) --- */
.input-field:focus {
  border-color: #43D9FB !important;
  box-shadow: 0 0 10px rgba(67, 217, 251, 0.50) !important;
  color: #43D9FB !important;
  background: rgba(159, 190, 201, 0.15) !important;
}
/* --- Filled (значение есть, но не в фокусе) --- */
.input-field.filled:not(:focus):not(.is-error) {
  border-color: rgba(67, 217, 251, 0.20);
  box-shadow: 0 0 10px rgba(67, 217, 251, 0.20);
  color: #E7EDEF;
}
/* --- Error --- */
.input-field.is-error {
  border-color: #FF305D !important;
  box-shadow: 0 0 10px #FF305D !important;
  color: #FF305D !important;
}
.input-error-text {
  font-size: 16px;
  text-shadow: 0 0 10px #FF305D;
  line-height: 22px;
  color: #FF305D;
  font-weight: 500;
  margin-top: 6px;
  font-family: 'Montserrat', sans-serif;
}

.login-page .error-page-content{
  display: grid;
  gap: 18px;
  padding: 0 12px;
  text-align: center;
}

.login-page .error-page-logo-wrap{
  width: 330px;
  height: auto;
  margin: 0 auto 20px;
}

.login-page .error-page-logo-wrap .brand-logo{
  position: static;
  left: auto;
  top: auto;
  width: 330px;
  max-width: 100%;
  margin: 0 auto;
}

.login-page .error-page-title{
  margin: 0;
  color: #EAF7FF;
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(67, 217, 251, 0.18);
}

.login-page .error-page-message{
  margin: 0;
  color: #6EAAC8;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.login-page .error-page-actions{
  display: flex;
  justify-content: center;
}

.login-page .error-page-actions .btn-outline{
  text-decoration: none;
}


/* Used in createion new player & join to session by game code */
.logo-desc{
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.logo-desc__icon{
  width: 24px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(9%) sepia(60%) saturate(689%) hue-rotate(146deg) brightness(94%) contrast(103%) drop-shadow(0 0 5px rgba(var(--glow), 1));
  opacity: 0.9;
}
.logo-desc__text{
  color: #6EAAC8;
  font-size: 14px;
  font-family: Montserrat;
}

/* remove spinner in player session code - Chrome, Safari, Edge, Opera */
input.no-spinner::-webkit-outer-spin-button,
input.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
