/* ============================================================
   SEEDANCE DIRECTOR — Login Page Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Outfit', sans-serif;
  background: #060608;
  color: #f0eefc;
  overflow: hidden;
}

/* ── Cinematic Background ── */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #f5c842 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.bg-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -4s;
}

.bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* Film grain overlay */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
}

/* Grid lines */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245,200,66,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,200,66,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Login Container ── */
.login-container {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ── Brand Header ── */
.login-brand {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeDown 0.6s ease both;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-brand-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #f5c842 0%, #8b5cf6 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 20px;
  box-shadow: 0 0 40px rgba(245,200,66,0.35), 0 0 80px rgba(139,92,246,0.2);
  position: relative;
}

.login-brand-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5c842, #8b5cf6);
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

.login-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #f5c842 0%, #ffffff 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.login-brand-sub {
  font-size: 13px;
  color: #8b8ba7;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ── Login Card ── */
.login-card {
  width: 100%;
  max-width: 420px;
  background: rgba(19, 19, 30, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.05) inset;
  animation: fadeUp 0.6s ease 0.1s both;
}

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

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0eefc;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: #8b8ba7;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Form ── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8b8ba7;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(13, 13, 20, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f0eefc;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: all 0.2s ease;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: rgba(245,200,66,0.5);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.1);
  background: rgba(13, 13, 20, 1);
}

.form-input::placeholder { color: #4a4a65; }

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrap .form-input {
  padding-right: 48px;
}

.toggle-pw {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: #4a4a65;
  cursor: pointer;
  font-size: 18px;
  padding: 0;
  transition: color 0.2s;
  line-height: 1;
}

.toggle-pw:hover { color: #f5c842; }

/* ── Login Button ── */
.btn-login {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #f5c842 0%, #e8b030 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  color: #060608;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,200,66,0.4);
}

.btn-login:hover::before { opacity: 1; }
.btn-login:active { transform: translateY(0); }

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-login.loading {
  pointer-events: none;
  animation: gradientPulse 1.5s ease infinite;
}

@keyframes gradientPulse {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(6,6,8,0.3);
  border-top-color: rgba(6,6,8,0.9);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn-login.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Error / Info Messages ── */
.login-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(245,70,90,0.1);
  border: 1px solid rgba(245,70,90,0.3);
  border-radius: 10px;
  font-size: 13px;
  color: #f5465a;
  display: none;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.3s ease;
}

.login-error.show { display: flex; }

/* ── Security Badge ── */
.security-badge {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: #4a4a65;
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22d3a5;
  box-shadow: 0 0 6px #22d3a5;
  animation: secPulse 2s ease infinite;
}

@keyframes secPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ── Footer ── */
.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: #4a4a65;
  animation: fadeUp 0.6s ease 0.3s both;
}
