/* ===========================
   RESET
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===========================
   BODY
=========================== */

body {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
  position: relative;

  background: linear-gradient(135deg, #02150d, #05381b, #01602a, #00994b);
}

/* ===========================
   PARTICLES
=========================== */

.particles {
  position: fixed;

  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 0;
}

.particles span {
  position: absolute;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.7);

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);

  animation: particleFloat linear infinite;
}

/* Individual particles */

.particles span:nth-child(1) {
  left: 8%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.particles span:nth-child(2) {
  left: 18%;
  animation-duration: 24s;
  animation-delay: 3s;
}

.particles span:nth-child(3) {
  left: 28%;
  animation-duration: 16s;
}

.particles span:nth-child(4) {
  left: 42%;
  animation-duration: 20s;
}

.particles span:nth-child(5) {
  left: 55%;
  animation-duration: 26s;
}

.particles span:nth-child(6) {
  left: 67%;
  animation-duration: 18s;
}

.particles span:nth-child(7) {
  left: 76%;
  animation-duration: 22s;
}

.particles span:nth-child(8) {
  left: 84%;
  animation-duration: 15s;
}

.particles span:nth-child(9) {
  left: 91%;
  animation-duration: 28s;
}

.particles span:nth-child(10) {
  left: 96%;
  animation-duration: 20s;
}

@keyframes particleFloat {
  from {
    transform: translateY(110vh) scale(0.4);

    opacity: 0;
  }

  15% {
    opacity: 0.9;
  }

  85% {
    opacity: 0.9;
  }

  to {
    transform: translateY(-15vh) scale(1.2);

    opacity: 0;
  }
}

/* ===========================
   MESH BACKGROUND
=========================== */

.mesh-background {
  position: fixed;

  inset: 0;

  overflow: hidden;

  z-index: 0;
}

.blob {
  position: absolute;

  border-radius: 50%;

  filter: blur(90px);

  opacity: 0.65;

  animation: floatBlob 22s ease-in-out infinite alternate;
}

.blob1 {
  width: 600px;
  height: 600px;

  background: #00ff9d;

  top: -180px;
  left: -120px;
}

.blob2 {
  width: 520px;
  height: 520px;

  background: #00d5ff;

  top: 10%;
  right: -180px;

  animation-duration: 28s;
}

.blob3 {
  width: 420px;
  height: 420px;

  background: #00c853;

  bottom: -150px;
  left: 18%;

  animation-duration: 24s;
}

.blob4 {
  width: 520px;
  height: 520px;

  background: #7cffd5;

  top: 48%;
  left: 60%;

  animation-duration: 30s;
}

.blob5 {
  width: 320px;
  height: 320px;

  background: #1de9b6;

  bottom: 10%;
  right: 20%;

  animation-duration: 26s;
}

/* ===========================
   BACKGROUND OVERLAY
=========================== */

.background-overlay {
  position: fixed;

  inset: 0;

  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 45%),
    rgba(0, 0, 0, 0.32);

  backdrop-filter: blur(50px);

  z-index: 1;
}

/* ===========================
   CURSOR LIGHT
=========================== */

.cursor-light {
  position: fixed;

  width: 380px;
  height: 380px;

  border-radius: 50%;

  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.18),
    transparent 72%
  );

  filter: blur(40px);

  transform: translate(-50%, -50%);

  z-index: 2;
}

/* ===========================
   ANIMATIONS
=========================== */

@keyframes floatBlob {
  0% {
    transform: translate(0px, 0px) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(70px, -40px) rotate(18deg) scale(1.15);
  }

  100% {
    transform: translate(-60px, 80px) rotate(35deg) scale(0.95);
  }
}

/* ===========================
   CONTAINER
=========================== */

.login-container {
  position: relative;

  z-index: 10;
}
/* ===========================
   GLASS CARD
=========================== */

.login-card {
  position: relative;

  isolation: isolate;

  width: 450px;

  padding: 60px;

  overflow: hidden;

  border-radius: 30px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(0, 255, 150, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.18);
}

/* Glass reflection */

.login-card::before {
  content: "";

  position: absolute;

  top: -50%;

  left: -80%;

  width: 220px;

  height: 180%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );

  transform: rotate(18deg);

  animation: shine 8s linear infinite;
}

@keyframes shine {
  0% {
    left: -80%;
  }

  100% {
    left: 150%;
  }
}

.login-card::after {
  content: "";

  position: absolute;

  inset: -40px;

  z-index: -1;

  border-radius: 40px;

  background: radial-gradient(circle, rgba(0, 255, 140, 0.18), transparent 70%);

  filter: blur(50px);
}

@keyframes cardFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ===========================
   LOGO
=========================== */

.login-logo {
  display: flex;

  justify-content: center;

  margin-bottom: 28px;
}

.login-logo img {
  width: 170px;
  height: auto;
  filter: drop-shadow(0 12px 25px rgba(0, 0, 0, 0.35));
}

/* ===========================
   TEXT
=========================== */

.login-card h2 {
  text-align: center;

  color: #fff;

  font-size: 34px;

  font-weight: 600;

  margin-bottom: 12px;
}

.login-card p {
  text-align: center;

  color: rgba(255, 255, 255, 0.82);

  font-size: 15px;

  line-height: 1.7;

  margin-bottom: 35px;
}

/* ===========================
   INPUTS
=========================== */

.input-group {
  margin-bottom: 22px;
}

.input-group label {
  display: block;

  margin-bottom: 8px;

  color: white;

  font-size: 14px;
}

.input-group input {
  width: 100%;

  padding: 15px 18px;

  border-radius: 14px;

  outline: none;

  border: 1px solid rgba(255, 255, 255, 0.18);

  background: rgba(255, 255, 255, 0.78);

  backdrop-filter: blur(20px);

  transition: all 0.3s ease;

  font-size: 15px;
}

.input-group input:hover {
  background: white;
}

.input-group input:focus {
  background: white;

  transform: translateY(-2px);

  border-color: #00d96b;

  box-shadow:
    0 0 0 5px rgba(0, 217, 107, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.08);
}

::placeholder {
  color: #7c7c7c;
}

/* ===========================
   LOGIN ERROR
=========================== */

.login-input-error {
  border: 2px solid #ef4444 !important;

  background: rgba(255, 245, 245, 0.95) !important;

  box-shadow:
    0 0 0 5px rgba(239, 68, 68, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.08);
}

.login-input-error:focus {
  border-color: #ef4444 !important;

  box-shadow:
    0 0 0 5px rgba(239, 68, 68, 0.22),
    0 8px 25px rgba(0, 0, 0, 0.08);
}

.login-error-text {
  margin-top: 10px;

  color: #ffb4b4;

  font-size: 14px;

  font-weight: 500;

  text-align: center;
}

.login-success-text {
  margin-top: 10px;

  color: #a8ffbe;

  font-size: 14px;

  font-weight: 500;

  text-align: center;
}

/* ===========================
   BUTTON
=========================== */

button {
  width: 100%;

  margin-top: 10px;

  padding: 16px;

  border: none;

  border-radius: 15px;

  background: linear-gradient(135deg, #00d96b, #009944);

  color: white;

  font-size: 16px;

  font-weight: 500;

  cursor: pointer;

  transition: 0.35s;

  box-shadow: 0 12px 30px rgba(0, 153, 68, 0.3);
}

button:hover {
  transform: translateY(-4px) scale(1.01);

  box-shadow:
    0 18px 40px rgba(0, 200, 100, 0.45),
    0 0 40px rgba(0, 255, 140, 0.35);
}

button:active {
  transform: scale(0.98);
}
