* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #05081a;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* BACKGROUND GLOW */

body::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(176, 92, 255, 0.18);
  border-radius: 50%;
  filter: blur(150px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* BACK BUTTON */

.back-home {
  position: fixed;
  top: 30px;
  left: 30px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  z-index: 10;
}

.back-home i {
  margin-right: 8px;
}

/* WRAPPER */

.auth-wrapper {
  width: 100%;
  max-width: 460px;
  padding: 20px;
  position: relative;
  z-index: 2;
}

/* CARD */

.auth-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(176, 92, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 40px rgba(176, 92, 255, 0.08);
}

/* LOGO */

.auth-logo {
  text-align: center;
  margin-bottom: 25px;
  font-size: 38px;
  font-weight: 800;
}

.auth-logo i {
  color: #b05cff;
  margin-right: 8px;
}

.kenzi-white {
  color: white;
}

.kenzi-play {
  background: linear-gradient(90deg, #c86fff, #b05cff, #ff8cf8);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TITLE */

.auth-card h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 10px;
  color: rgb(255, 255, 255);
}

.auth-card p {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  line-height: 1.7;
}

/* FORM */

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 0 18px;
  font-size: 15px;
}

.input-group input:focus {
  outline: none;
  border-color: #b05cff;
  box-shadow: 0 0 20px rgba(176, 92, 255, 0.25);
}

/* OPTIONS */

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0 25px;
}

.auth-options label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.auth-options a {
  color: #c86fff;
  text-decoration: none;
}

/* BUTTON */

.login-btn {
  width: 100%;
  height: 58px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #b05cff, #ff71d4);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(176, 92, 255, 0.3);
}

/* REGISTER */

.register-link {
  margin-top: 25px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.register-link a {
  color: #c86fff;
  text-decoration: none;
  font-weight: 600;
}

/* MOBILE */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .auth-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 15px;
  }

  .auth-card {
    width: 100%;
    padding: 25px;
  }

  body::before {
    width: 300px;
    height: 300px;
  }

  .auth-card {
    padding: 30px;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .auth-logo {
    font-size: 30px;
  }

  .back-home {
    top: 20px;
    left: 20px;
  }
}

/* =========================================
   LOADING SCREEN
========================================= */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(5, 8, 26, 0.75);
  backdrop-filter: blur(18px);
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loading-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-blur {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(176, 92, 255, 0.25);
  filter: blur(120px);
  animation: pulseLoading 2.5s ease-in-out infinite;
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.loading-content i {
  font-size: 42px;
  color: #b05cff;
  margin-bottom: 18px;
  animation: floatIcon 2s ease-in-out infinite;
}

.loading-content h2 {
  font-size: 42px;
  margin-bottom: 25px;
}

.loading-bar {
  width: 260px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b05cff, #ff78f2);
  animation: loadingMove 1.2s linear infinite;
}

.loading-content p {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes loadingMove {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(350%);
  }
}

@keyframes pulseLoading {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
