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

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  text-align: left;
}

img {
  max-width: 100%;
  opacity: 1;
  transition: all 0.3s ease;
}

button,
input,
div {
  outline: 0 !important;
}

/* Layout container */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.text-center {
  text-align: center !important;
}

.pointer {
  cursor: pointer;
}

.fnt-08 {
  font-size: 0.8em;
}

.color-white {
  color: #fff;
}

.hidden {
  display: none !important;
}

/* Spacing utilities used on the login page */
.p-2 { padding: 0.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-3 { padding-top: 1rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }

/* Marquee header strip (kept for layout parity) */
.game-config {
  position: relative;
  z-index: 99;
}

.marquee-section {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
}

/* Background + login viewport wrapper.
   Order matters: .background must win position over .wrapper-content-sign-in
   so the element is viewport-sized and the centred form has an anchor. */
.wrapper-content-sign-in {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  z-index: 1;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  z-index: 0;
  background: #000;
}

.background-login {
  background: url(../assets/bg-3.jpg) no-repeat center center;
  background-size: cover;
}

/* Login card */
.userLogin form {
  left: 50%;
  top: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 0.2rem solid #da562b;
  border-radius: 5px;
  color: #fff;
  width: 100%;
  max-width: 520px;
  padding: 0 3rem 2rem 3rem;
}

/* Logo */
.user-login {
  margin: 0 auto;
  display: flex;
  width: 300px;
  overflow: initial;
}

.user-login img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
  animation: modal-scale 0.4s ease-in-out;
}

@keyframes modal-scale {
  0%   { transform: scale(0.8); }
  50%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Floating-label form groups */
.userLogin form .form-group {
  position: relative;
  height: 50px;
  margin-bottom: 1rem;
}

.userLogin form .form-group input,
.userLogin form .form-group label {
  touch-action: manipulation;
}

.userLogin form .form-group label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  color: #dedede;
  letter-spacing: 0.05em;
  transform: translateY(0);
}

.userLogin form .form-group input {
  border: none;
  border-bottom: 1px solid #b2b2b2;
  color: #fff;
  border-radius: 0;
  display: block;
  width: 100%;
  background: transparent;
  padding: 0.2rem 0;
  font-size: 1rem;
}

.userLogin form .form-group input:focus {
  background: transparent;
  border-bottom-color: #e76f26;
  color: #b2b2b2;
}

.userLogin form .form-group input:focus + label {
  transform: translateY(-90%);
  color: #e76f26;
}

.userLogin form .form-group input:valid {
  background: transparent;
  border-bottom-color: #e76f26;
  color: #b2b2b2;
}

.userLogin form .form-group input:valid + label {
  transform: translateY(-90%);
  color: #e76f26;
}

/* Password eye toggle */
.userLogin form .form-group .eye {
  position: absolute;
  right: 0;
  top: 0;
}

.userLogin form .form-group .eye .switch-eye {
  padding: 0 0.5rem;
}

.userLogin form .form-group .eye .switch-eye i {
  cursor: pointer;
}

.userLogin form .form-group .eye .switch-eye i.fa-eye {
  color: #e76f26;
}

.userLogin form .form-group .eye .switch-eye i.fa-eye-slash {
  color: #b2b2b2;
}

/* Sign-In button */
.userLogin form .btn {
  width: 100%;
  font-size: 20px;
}

.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.btn:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  border-radius: 0.3rem;
}

.btn-round {
  border-radius: 50px !important;
}

.login-button .login-btn {
  background: linear-gradient(180deg, #dd4f27 0, #e76f26);
  border: 1px solid transparent;
  outline: 0;
  color: #fff;
}

.login-button .login-btn:hover {
  color: #fff;
}

.login-button .login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Powered-by footer */
.powered-by {
  font-size: 0.8rem;
}

.powered-by img {
  width: 120px;
}
