/* ── BASE ── */
html, body { height: 100vh; overflow: hidden; }

/* ── EMAIL INPUT ── */
.email-input {
  width: 100%;
  background: #fff;
  border: 1px solid #e2dbd4;
  border-radius: 8px;
  padding: 13px 16px 13px 42px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #2a1f14;
  outline: none;
  box-shadow: 0 2px 8px rgba(42, 31, 20, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.email-input::placeholder { color: #b0a49a; font-weight: 300; }
.email-input:focus {
  border-color: #2a1f14;
  box-shadow: 0 4px 16px rgba(42, 31, 20, 0.10);
  transform: translateY(-2px);
}

/* ── ERROR STATE ── */
.email-input.input-error {
  border-color: #f87171;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}
.email-input.input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15);
}

/* ── LEFT PANEL — cinematic slide in ── */
@keyframes slideInLeft {
  0%   { transform: translateX(-100%) scale(1.05); opacity: 0; }
  100% { transform: translateX(0)     scale(1);    opacity: 1; }
}

/* ── RIGHT PANEL — dramatic scale pop ── */
@keyframes dramaticPop {
  0%   { transform: scale(0.88) translateY(30px); opacity: 0; filter: blur(4px); }
  60%  { transform: scale(1.02) translateY(-4px); opacity: 1; filter: blur(0px); }
  100% { transform: scale(1)    translateY(0);    opacity: 1; filter: blur(0px); }
}

/* ── ELEMENTS — spring pop with blur ── */
@keyframes springPop {
  0%   { opacity: 0; transform: translateY(20px) scale(0.94); filter: blur(3px); }
  60%  { opacity: 1; transform: translateY(-4px) scale(1.02); filter: blur(0px); }
  100% { opacity: 1; transform: translateY(0)    scale(1);    filter: blur(0px); }
}

/* ── TOAST ── */
@keyframes tIn   { to { transform: translateY(0);     opacity: 1; } }
@keyframes tOut  { to { transform: translateY(-80px); opacity: 0; } }
@keyframes tProg { from { width: 100%; } to { width: 0%; } }

.toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  width: 240px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(42, 31, 20, 0.22);
  animation: tIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform: translateY(-80px);
  opacity: 0;
}
.toast.hide { animation: tOut 0.35s cubic-bezier(0.4, 0, 1, 1) forwards; }

/* left panel */
.left-panel {
  animation: slideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* right panel */
.right-panel {
  animation: dramaticPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
  opacity: 0;
}

/* staggered elements */
.anim-1 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s  forwards; opacity: 0; }
.anim-2 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards; opacity: 0; }
.anim-3 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s  forwards; opacity: 0; }
.anim-4 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards; opacity: 0; }
.anim-5 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s  forwards; opacity: 0; }
.anim-6 { animation: springPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.0s  forwards; opacity: 0; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ── SUBMIT BUTTON LOADING STATE ──
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* spinner ring */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* shimmer sweep across button */
@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(200%)  skewX(-12deg); }
}

/* subtle pulse glow on button when loading */
@keyframes loadingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 31, 20, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(42, 31, 20, 0.12); }
}

/* ── button loading state class ── */
.btn-loading {
  position: relative;
  overflow: hidden;
  cursor: not-allowed !important;
  pointer-events: none;
  animation: loadingPulse 1.6s ease-in-out infinite;
  opacity: 0.92;
}

/* shimmer sweep */
.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.13) 50%,
    transparent 70%
  );
  animation: shimmer 1.4s ease-in-out infinite;
}

/* ── spinner ── */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.8px solid rgba(245, 242, 237, 0.3);
  border-top-color: #f5f2ed;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ── dots that animate one by one ── */
@keyframes dotPop {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40%           { transform: scale(1.1); opacity: 1; }
}

.btn-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #f5f2ed;
  opacity: 0.3;
  animation: dotPop 1.2s ease-in-out infinite;
}
.btn-dot:nth-child(1) { animation-delay: 0s;    }
.btn-dot:nth-child(2) { animation-delay: 0.2s;  }
.btn-dot:nth-child(3) { animation-delay: 0.4s;  }