
/* ==========================================
   KZ ANTICHEAT V2
   AUTHENTICATION DESIGN
========================================== */

.auth-page {
  min-height: 100vh;
  background: #08090c;
  color: #f7f8fc;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* PAINEL ESQUERDO */

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 38px 55px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 50% 65%,
      rgba(0, 102, 255, .22),
      transparent 60%
    ),
    #0a0e16;
  border-right: 1px solid #202938;
}

.auth-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(
    to bottom,
    black,
    transparent 95%
  );
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-size: 19px;
  font-weight: 800;
}

.auth-brand strong {
  color: #42adff;
}

.auth-brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.auth-brand-content {
  width: 100%;
  max-width: 540px;
  margin: 50px auto;
}

.auth-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #1e518b;
  border-radius: 30px;
  background: #0d2441;
  color: #76c8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.auth-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #299cff;
  box-shadow: 0 0 12px #299cff;
}

.auth-brand-content h1 {
  margin: 26px 0 18px;
  font-size: clamp(34px, 3.3vw, 53px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.15;
}

.auth-brand-content h1 span {
  color: #43b0ff;
}

.auth-brand-content > p {
  max-width: 450px;
  color: #9da8b9;
  font-size: 14px;
  line-height: 1.85;
}

.auth-brand-image {
  position: relative;
  height: 285px;
  display: grid;
  place-items: center;
  margin-top: 28px;
}

.auth-main-logo {
  position: relative;
  z-index: 2;
  width: min(250px, 75%);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 0 35px #087bff66);
  animation: authFloat 5s ease-in-out infinite;
}

.auth-orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orbit-outer {
  width: 275px;
  height: 275px;
  border: 1px dashed #238fff55;
  animation: authSpin 35s linear infinite;
}

.orbit-inner {
  width: 220px;
  height: 220px;
  border: 1px solid #258dff88;
  border-left-color: transparent;
  border-bottom-color: transparent;
  animation: authSpin 18s linear infinite reverse;
}

.auth-copyright {
  color: #6e7d90;
  font-size: 11px;
}

/* PAINEL DIREITO */

.auth-form-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 55px 35px;
  background:
    radial-gradient(
      ellipse at 100% 0,
      #0d204028,
      transparent 55%
    ),
    #08090c;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 405px;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 60px;
  color: #8794a7;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s;
}

.auth-back:hover {
  color: #42adff;
}

.auth-mobile-logo {
  display: none;
}

.auth-eyebrow {
  color: #359fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.auth-form-heading h2 {
  margin: 14px 0 12px;
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 900;
  letter-spacing: -1.5px;
}

.auth-form-heading p {
  color: #8c95a5;
  font-size: 13px;
  line-height: 1.7;
}

#loginForm {
  margin-top: 36px;
}

.auth-field {
  margin-bottom: 23px;
}

.auth-field label {
  display: block;
  margin-bottom: 11px;
  color: #e7ebf2;
  font-size: 12px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  height: 49px;
  padding: 0 15px;
  border: 1px solid #30343e;
  border-radius: 9px;
  outline: none;
  background: #121419;
  color: #f7f8fc;
  font-family: inherit;
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}

.auth-field input::placeholder {
  color: #656d7b;
}

.auth-field input:focus {
  border-color: #248dff;
  box-shadow: 0 0 0 3px #087bff22;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-field-row a {
  margin-bottom: 11px;
  color: #4aaeff;
  font-size: 11px;
  font-weight: 600;
}

.auth-field-row a:hover {
  text-decoration: underline;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 95px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  padding: 7px;
  border: 0;
  background: transparent;
  color: #4aaeff;
  font-size: 11px;
  font-weight: 700;
}

.password-toggle:hover {
  color: #8ed2ff;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 0 28px;
  color: #a2aab7;
  font-size: 12px;
  cursor: pointer;
}

.remember-row input {
  width: 15px;
  height: 15px;
  accent-color: #1689ff;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid #3b9cff;
  border-radius: 9px;
  background: linear-gradient(110deg, #0066ed, #168fff);
  color: white;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px #087bff44;
}

.auth-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.auth-message {
  min-height: 20px;
  margin-top: 13px;
  color: #8fcaff;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

.auth-message.error {
  color: #ff8383;
}

.auth-message.success {
  color: #59dfa1;
}

.auth-divider {
  position: relative;
  margin: 25px 0;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #252931;
}

.auth-divider span {
  position: relative;
  padding: 0 15px;
  background: #08090c;
  color: #727b89;
  font-size: 10px;
}

.auth-register {
  color: #a2aab7;
  font-size: 12px;
  text-align: center;
}

.auth-register a {
  margin-left: 5px;
  color: #4aaeff;
  font-weight: 800;
}

.auth-register a:hover {
  text-decoration: underline;
}

.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  color: #6e7b8c;
  font-size: 11px;
}

.auth-security-note span {
  color: #359fff;
  font-size: 16px;
}

/* ANIMAÇÕES */

@keyframes authFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

/* RESPONSIVIDADE */

@media (max-width: 1050px) {
  .auth-brand-panel {
    padding: 30px;
  }

  .auth-form-panel {
    padding: 45px 25px;
  }

  .auth-brand-content h1 {
    font-size: 37px;
  }
}

@media (max-width: 760px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    display: none;
  }

  .auth-form-panel {
    min-height: 100vh;
    padding: 45px 22px;
  }

  .auth-form-wrapper {
    max-width: 420px;
  }

  .auth-back {
    margin-bottom: 40px;
  }

  .auth-mobile-logo {
    display: block;
    margin-bottom: 30px;
  }

  .auth-mobile-logo img {
    width: 85px;
    height: 85px;
    object-fit: contain;
  }

  .auth-security-note {
    margin-top: 35px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-main-logo,
  .auth-orbit {
    animation: none;
  }
}
