/* =========================
   GLOBAL
========================= */
body {
  margin: 0;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   BACKGROUND (GLASS BLOBS)
========================= */
.auth-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, #1e293b, #0f172a);
  overflow: hidden;
  z-index: -1;
}

/* BLOBS */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatBlob 35s ease-in-out infinite;
}

.blob1 {
  width: 320px;
  height: 320px;
  background: #fbbf24;
  top: 10%;
  left: 15%;
}

.blob2 {
  width: 260px;
  height: 260px;
  background: #fb923c;
  bottom: 15%;
  right: 20%;
  animation-delay: 5s;
}

.blob3 {
  width: 220px;
  height: 220px;
  background: #f59e0b;
  top: 50%;
  left: 60%;
  animation-delay: 10s;
}

@keyframes floatBlob {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(0,0) scale(1); }
}

@keyframes floatBlob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.05);
  }
  50% {
    transform: translate(60px, 10px) scale(1.1);
  }
  75% {
    transform: translate(-20px, 30px) scale(1.05);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}


/* SMALL GLOW PARTICLES */
.particle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,146,60,0.8), transparent);
  filter: blur(30px);
  opacity: 0.6;
  animation: floatParticle 20s infinite ease-in-out;
}

.p1 {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 70%;
  animation-delay: 1s;
}

.p2 {
  width: 80px;
  height: 80px;
  top: 70%;
  left: 30%;
  animation-delay: 5s;
}

.p3 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 10%;
  animation-delay: 10s;
}


@keyframes floatParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
  50% {
    transform: translate(40px, -30px);
    opacity: 0.8;
  }
  100% {
    transform: translate(0, 0);
    opacity: 0.5;
  }
}

/* =========================
   CENTER LAYOUT
========================= */
.auth-center {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   CARD (GLASS)
========================= */
.auth-card {
  width: 380px;
  padding: 35px;
  border-radius: 20px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.15);

  box-shadow: 0 20px 40px rgba(0,0,0,0.4);

  text-align: center;
  color: white;
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-3px);
}

/* =========================
   LOGO
========================= */
.logo-box {
  width: 90px;
  height: 90px;
  border-radius: 18px;
  border: 1px solid rgba(251, 167, 0, 0.974);

  display: flex;
  align-items: center;
  justify-content: center;

  margin: auto;
  margin-bottom: 15px;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.3),
    inset 0 2px 5px rgba(0,0,0,0.05);
}

.logo-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* =========================
   TEXT
========================= */
h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

/* =========================
   INPUTS (GLASS STYLE)
========================= */
.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border: 1px solid #fbbf24;
  box-shadow: 0 0 0 2px rgba(251,191,36,0.3);
}

/* ICON */
.input-group i {
  color: rgba(255,255,255,0.6);
}

/* INPUT FIELD */
.input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* =========================
   PASSWORD
========================= */
.password {
  position: relative;
}

.toggle-pass {
  position: absolute;
  right: 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
}

/* =========================
   BUTTON
========================= */
.btn-login {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #0f172a;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: all 0.2s ease;
}

/* HOVER LIFT */
.btn-login:hover {
  transform: translateY(-2px) scale(1.01);
}

/* SHINE EFFECT */
.btn-login::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  transition: all 0.6s ease;
}

.btn-login:hover::after {
  left: 100%;
}

/* =========================
   LINK
========================= */
.link {
  margin-top: 10px;
  background: none;
  border: none;

  color: #fbbf24;
  font-size: 13px;

  cursor: pointer;
}

.hidden {
  display: none;
}

.password-strength,
.password-match {
  font-size: 12px;
  margin-top: 6px;
  text-align: left;
  padding-left: 5px;
}

/* COLORS */
.weak { color: #ef4444; }      /* red */
.medium { color: #f59e0b; }    /* orange */
.strong { color: #22c55e; }    /* green */
.match { color: #22c55e; }
.no-match { color: #ef4444; }

.strength-bar {
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  margin-top: 8px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 0%;
  transition: all 0.4s ease;
  border-radius: 10px;
}

.password-rules {
  font-size: 12px;
  margin-top: 8px;
  text-align: left;
  color: rgba(255,255,255,0.6);
}

.password-rules div {
  margin-top: 3px;
  transition: 0.2s;
}

.rule-ok {
  color: #22c55e;
}