/* ── AUTH PAGE STYLES ── */
.auth-body {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Animated background blobs */
.auth-bg {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.auth-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent); top: -150px; right: -100px; animation: blobFloat 8s ease-in-out infinite; }
.blob-2 { width: 400px; height: 400px; background: #6c5ce7; bottom: -100px; left: -80px; animation: blobFloat 10s ease-in-out infinite reverse; }
.blob-3 { width: 300px; height: 300px; background: var(--gold); top: 40%; left: 40%; animation: blobFloat 6s ease-in-out infinite 2s; }

@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,15px) scale(0.95); }
}

/* Auth card */
.auth-center {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative; z-index: 1;
}
.auth-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.auth-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.5rem;
  color: #fff; text-align: center;
  margin-bottom: 0.35rem; letter-spacing: -0.5px;
}
.auth-logo span { color: var(--accent); }
.auth-tagline { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.82rem; margin-bottom: 2rem; }

.auth-title {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: #fff; margin-bottom: 1.75rem; text-align: center;
}

/* Google button */
.btn-google {
  width: 100%; background: #fff; color: #3c4043;
  border: none; border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
  transition: box-shadow var(--tr-fast), transform var(--tr-fast);
  margin-bottom: 1.25rem;
}
.btn-google:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.3); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem;
}
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:rgba(255,255,255,0.15); }
.auth-divider span { color: rgba(255,255,255,0.35); font-size: 0.78rem; }

/* Auth form inputs */
.auth-input {
  width: 100%; background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm); padding: 0.7rem 1rem;
  color: #fff; font-size: 0.9rem; outline: none;
  transition: border-color var(--tr-fast), background var(--tr-fast);
  margin-bottom: 0.75rem;
}
.auth-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.12); }
.auth-input::placeholder { color: rgba(255,255,255,0.3); }

.auth-label {
  display: block; color: rgba(255,255,255,0.6); font-size: 0.78rem;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 0.4rem;
}

/* Submit button */
.auth-submit {
  width: 100%; background: var(--accent); color: #fff; border: none;
  border-radius: var(--r-sm); padding: 0.85rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: background var(--tr-fast), transform var(--tr-fast);
  margin-top: 0.5rem;
}
.auth-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Footer link */
.auth-footer { text-align: center; margin-top: 1.25rem; color: rgba(255,255,255,0.45); font-size: 0.83rem; }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* Error message */
.auth-error {
  background: rgba(192,57,43,0.2); border: 1px solid rgba(192,57,43,0.4);
  color: #ff8c8c; border-radius: var(--r-sm);
  padding: 0.65rem 1rem; font-size: 0.84rem;
  margin-bottom: 1rem; display: none;
}
.auth-error.visible { display: block; }

/* Password wrapper */
.pw-wrapper { position: relative; margin-bottom: 0.75rem; }
.pw-wrapper .auth-input { margin-bottom: 0; padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 1rem; padding: 0;
  transition: color var(--tr-fast);
}
.pw-toggle:hover { color: rgba(255,255,255,0.8); }

/* Forgot link */
.forgot-link {
  display: block; text-align: right; color: rgba(255,255,255,0.45);
  font-size: 0.78rem; margin-top: -0.25rem; margin-bottom: 1rem;
}
.forgot-link:hover { color: var(--accent); }

/* Mobile optimization */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }
  .auth-center {
    padding: 1rem 0.75rem;
    align-items: flex-start;
    padding-top: 1.5rem;
  }
  .auth-input {
    min-height: 44px;
    font-size: 0.95rem;
  }
  .auth-submit {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.9rem;
  }
  .btn-google {
    min-height: 46px;
    font-size: 0.9rem;
  }
  .auth-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 380px) {
  .auth-card {
    padding: 1.5rem 1rem;
  }
  .auth-center {
    padding: 1rem 0.5rem;
  }
  .auth-title {
    font-size: 1.1rem;
    margin-bottom: 1.35rem;
  }
  .auth-logo {
    font-size: 1.3rem;
  }
}
