@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.auth-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}
.auth-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-blob 8s ease-in-out infinite;
}
.auth-bg .blob-1 {
  width: 400px; height: 400px;
  background: #5434E5;
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.auth-bg .blob-2 {
  width: 350px; height: 350px;
  background: #a855f7;
  bottom: -80px; right: -80px;
  animation-delay: 2s;
}
.auth-bg .blob-3 {
  width: 250px; height: 250px;
  background: #3b82f6;
  top: 50%; left: 60%;
  animation-delay: 4s;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ===== AUTH CARD ===== */
.auth-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: 20px;
}
.auth-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.auth-logo {
  text-align: center;
  margin-bottom: 8px;
}
.auth-logo span {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #5434E5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-card h2 {
  text-align: center;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.auth-card .auth-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ===== FORM ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input {
  width: 100%;
  height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}
.form-group input:focus {
  outline: none;
  border-color: #5434E5;
  box-shadow: 0 0 0 3px rgba(84,52,229,0.2);
  background: rgba(255,255,255,0.1);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}
.auth-links a:hover {
  color: #a78bfa;
}
.auth-links a.highlight {
  color: #a78bfa;
  font-weight: 700;
}
.auth-links a.highlight:hover {
  color: #5434E5;
}

.btn-auth-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #5434E5, #7c3aed);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}
.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(84,52,229,0.4);
}
.btn-auth-submit:active {
  transform: translateY(0);
}

/* ===== VALIDATION ===== */
.invalid-feedback {
  width: 100%;
  margin-top: 6px;
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(239,68,68,0.2);
}
.is-invalid {
  border-color: #ef4444 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 500px) {
  .auth-card {
    padding: 32px 24px;
  }
  .auth-wrapper {
    margin: 12px;
  }
}
