/* ============================================================
   LOGIN PAGE SPECIFIC STYLES
   ============================================================ */

.login-body {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--charcoal);
  overflow: hidden; /* Prevent scroll from background blobs */
  padding: 20px;
}

/* ============================================================
   DREAMY ANIMATED BACKGROUND
   ============================================================ */
.dreamy-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Below grain overlay */
  pointer-events: none;
  overflow: hidden;
  background: var(--charcoal);
  /* A base gradient */
  background: radial-gradient(circle at center, rgba(30, 28, 25, 1) 0%, rgba(18, 17, 15, 1) 100%);
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.6;
  border-radius: 50%;
  animation: floatBlob 15s infinite ease-in-out alternate;
  will-change: transform;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: rgba(184, 150, 62, 0.15); /* Soft gold */
  top: -10%;
  left: -10%;
  animation-duration: 22s;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: rgba(220, 180, 200, 0.08); /* Dreamy pastel pink */
  bottom: -20%;
  right: -10%;
  animation-duration: 28s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(150, 180, 200, 0.06); /* Soft moody blue/teal */
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-delay: -10s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -10%) scale(0.95); }
}

/* ============================================================
   FLOATING SPARKLES
   ============================================================ */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  color: var(--gold-light);
  opacity: 0;
  font-size: 16px;
  animation: twinkle 4s infinite ease-in-out;
  text-shadow: 0 0 8px rgba(184, 150, 62, 0.8);
  will-change: opacity, transform;
  transition: transform 0.5s ease-out; /* For interactive mousemove */
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.6; transform: scale(1.2) rotate(15deg); }
}

/* ============================================================
   MAIN LOGIN CARD (GLASSMORPHISM)
   ============================================================ */
.login-main {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  animation: slideUpFade 1.2s var(--ease-out-expo) forwards;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-glass-card {
  background: rgba(28, 28, 26, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 240, 232, 0.08);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo {
  display: inline-block;
  width: 48px;
  height: 48px;
  color: var(--gold);
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 300;
  color: var(--text-on-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.login-headline em {
  font-style: italic;
  color: var(--gold-light);
}

.login-subhead {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 8px;
  padding: 24px 16px 10px 16px;
  color: var(--text-on-dark);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(184, 150, 62, 0.5);
  box-shadow: 0 0 15px rgba(184, 150, 62, 0.1);
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-on-dark-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease-silk);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
  margin-bottom: 12px;
}

.forgot-link {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-on-dark-muted);
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--text-on-dark);
}

.login-btn {
  padding: 18px 24px;
  font-size: 11px;
  letter-spacing: 0.25em;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(184, 150, 62, 0.2);
}

.login-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184, 150, 62, 0.35);
  color: var(--charcoal);
}

/* Footer */
.login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

.signup-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(184, 150, 62, 0.4);
  transition: all 0.3s ease;
}

.signup-link:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

/* Responsive */
@media (max-width: 480px) {
  .login-glass-card {
    padding: 40px 24px;
    border-radius: 20px;
  }
  
  .login-headline {
    font-size: 32px;
  }
}
