/* F&B login — premium resort operations brief */
.login-page {
  --login-ink: #071018;
  --login-deep: #0c1a28;
  --login-gold: #d4b483;
  --login-gold-soft: rgba(212, 180, 131, 0.22);
  --login-foam: #8ec8c0;
  --login-mist: rgba(248, 250, 252, 0.72);
  --login-glass: rgba(8, 18, 28, 0.62);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Figtree", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  color: #f4f1ea;
  font-family: var(--font-ui);
  background: var(--login-ink);
  overflow-x: hidden;
}

.login-page *,
.login-page *::before,
.login-page *::after {
  box-sizing: border-box;
}

.login-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.login-hero__img {
  position: absolute;
  inset: -4%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  animation: loginKenBurns 28s ease-in-out infinite alternate;
  transform: scale(1.08);
  will-change: transform;
}

.login-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 12, 20, 0.88) 0%, rgba(5, 12, 20, 0.55) 42%, rgba(5, 12, 20, 0.35) 68%, rgba(7, 16, 24, 0.72) 100%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(142, 200, 192, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 90%, rgba(212, 180, 131, 0.12), transparent 50%);
}

.login-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
  animation: loginOrbFloat 14s ease-in-out infinite;
}

.login-orb--a {
  width: 28vw;
  height: 28vw;
  max-width: 320px;
  max-height: 320px;
  left: 8%;
  top: 18%;
  background: rgba(142, 200, 192, 0.35);
}

.login-orb--b {
  width: 34vw;
  height: 34vw;
  max-width: 400px;
  max-height: 400px;
  right: 6%;
  bottom: 12%;
  background: rgba(212, 180, 131, 0.28);
  animation-delay: -5s;
}

.login-orb--c {
  width: 22vw;
  height: 22vw;
  max-width: 240px;
  max-height: 240px;
  left: 42%;
  top: 62%;
  background: rgba(125, 180, 210, 0.22);
  animation-delay: -9s;
  animation-duration: 18s;
}

.login-beam {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.045) 48%,
    rgba(212, 180, 131, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 52%,
    transparent 65%
  );
  mix-blend-mode: soft-light;
  animation: loginBeamSweep 11s ease-in-out infinite;
  transform: translateX(-18%) rotate(8deg);
}

.login-motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-mote {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 245, 230, 0.95), rgba(212, 180, 131, 0.15) 55%, transparent 70%);
  box-shadow: 0 0 12px rgba(212, 180, 131, 0.45);
  opacity: 0;
  animation: loginMoteDrift 12s linear infinite;
}

.login-mote:nth-child(odd) {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(180, 230, 220, 0.95), transparent 70%);
  box-shadow: 0 0 10px rgba(142, 200, 192, 0.5);
}

.login-mote--1 { left: 8%; bottom: -5%; animation-duration: 14s; animation-delay: 0s; }
.login-mote--2 { left: 14%; bottom: -5%; animation-duration: 17s; animation-delay: -2s; }
.login-mote--3 { left: 22%; bottom: -5%; animation-duration: 13s; animation-delay: -4s; }
.login-mote--4 { left: 31%; bottom: -5%; animation-duration: 16s; animation-delay: -1s; }
.login-mote--5 { left: 39%; bottom: -5%; animation-duration: 18s; animation-delay: -6s; }
.login-mote--6 { left: 47%; bottom: -5%; animation-duration: 12s; animation-delay: -3s; }
.login-mote--7 { left: 55%; bottom: -5%; animation-duration: 15s; animation-delay: -7s; }
.login-mote--8 { left: 63%; bottom: -5%; animation-duration: 19s; animation-delay: -2.5s; }
.login-mote--9 { left: 71%; bottom: -5%; animation-duration: 14s; animation-delay: -5s; }
.login-mote--10 { left: 78%; bottom: -5%; animation-duration: 16s; animation-delay: -8s; }
.login-mote--11 { left: 86%; bottom: -5%; animation-duration: 13s; animation-delay: -1.5s; }
.login-mote--12 { left: 92%; bottom: -5%; animation-duration: 17s; animation-delay: -4.5s; }
.login-mote--13 { left: 18%; bottom: -5%; animation-duration: 20s; animation-delay: -9s; }
.login-mote--14 { left: 44%; bottom: -5%; animation-duration: 11s; animation-delay: -0.8s; }
.login-mote--15 { left: 58%; bottom: -5%; animation-duration: 15s; animation-delay: -6.5s; }
.login-mote--16 { left: 67%; bottom: -5%; animation-duration: 18s; animation-delay: -3.2s; }
.login-mote--17 { left: 83%; bottom: -5%; animation-duration: 12s; animation-delay: -7.4s; }
.login-mote--18 { left: 4%; bottom: -5%; animation-duration: 21s; animation-delay: -10s; }

.login-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(142, 200, 192, 0.06),
    rgba(255, 255, 255, 0.04),
    transparent
  );
  animation: loginScan 9s ease-in-out infinite;
}

.login-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.login-brand {
  animation: loginRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand__logo {
  width: min(180px, 42vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
  margin-bottom: 1.25rem;
}

.login-brand__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--login-gold);
  font-weight: 600;
}

.login-brand__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f8f5ef;
}

.login-brand__title span {
  display: block;
  color: var(--login-foam);
  font-style: italic;
  font-weight: 400;
}

.login-brand__lede {
  margin: 1rem 0 0;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--login-mist);
}

.login-ops {
  margin-top: 2.25rem;
  animation: loginRise 1s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-ops__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.login-ops__label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.55);
  font-weight: 600;
}

.login-live-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: loginLivePulse 1.8s ease-out infinite;
  flex-shrink: 0;
}

.login-ops__date {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--login-gold);
}

.login-ops__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.login-stat {
  position: relative;
  padding: 0.95rem 0.9rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(165deg, rgba(14, 28, 40, 0.88) 0%, rgba(10, 20, 30, 0.82) 55%, rgba(8, 16, 24, 0.9) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  overflow: hidden;
  animation:
    loginRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both,
    loginCardFloat 7s ease-in-out infinite;
}

.login-stat:nth-child(1) { animation-delay: 0.18s, 0s; }
.login-stat:nth-child(2) { animation-delay: 0.26s, -1.1s; }
.login-stat:nth-child(3) { animation-delay: 0.34s, -2.2s; }
.login-stat:nth-child(4) { animation-delay: 0.42s, -0.6s; }
.login-stat:nth-child(5) { animation-delay: 0.5s, -1.7s; }
.login-stat:nth-child(6) { animation-delay: 0.58s, -3s; }

.login-stat::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 70%;
  height: 70%;
  border-radius: 999px;
  background: radial-gradient(circle, var(--login-gold-soft), transparent 70%);
  opacity: 0.7;
  animation: loginGlow 5.5s ease-in-out infinite;
}

.login-stat--meal::after {
  background: radial-gradient(circle, rgba(142, 200, 192, 0.28), transparent 70%);
}

.login-stat__kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.72);
  font-weight: 600;
}

.login-stat__value {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  line-height: 1;
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.login-stat__meta {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: rgba(248, 245, 239, 0.62);
}

.login-panel-wrap {
  animation: loginSlide 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-panel {
  position: relative;
  border-radius: 1.5rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--login-glass);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  animation: loginPanelBreath 8s ease-in-out infinite;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--login-gold), var(--login-foam), transparent);
  opacity: 0.85;
  background-size: 200% 100%;
  animation: loginShimmer 4.5s linear infinite;
}

.login-panel::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%;
  height: 55%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 180, 131, 0.14), transparent 70%);
  pointer-events: none;
  animation: loginGlow 6s ease-in-out infinite;
}

.login-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
}

.login-panel__sub {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: rgba(248, 245, 239, 0.62);
}

.login-alert {
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.login-alert--ok {
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #d1fae5;
}

.login-alert--err {
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(244, 63, 94, 0.14);
  color: #fecdd3;
}

.login-alert--warn {
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
}

.login-form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.login-field label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.55);
  font-weight: 600;
}

.login-field input {
  margin-top: 0.4rem;
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0.8rem 0.95rem;
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-field input::placeholder {
  color: rgba(248, 245, 239, 0.35);
}

.login-field input:focus {
  border-color: rgba(212, 180, 131, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.16);
}

.login-btn {
  width: 100%;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: #172018;
  background: linear-gradient(135deg, #e7d0a8 0%, #d4b483 45%, #b8925f 100%);
  box-shadow: 0 14px 30px rgba(184, 146, 95, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn--ghost {
  margin-top: 0.65rem;
  background: transparent;
  color: rgba(248, 245, 239, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  font-weight: 600;
}

.login-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  filter: none;
}

.login-hint {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(248, 245, 239, 0.45);
}

.login-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: rgba(212, 180, 131, 0.9);
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(3, 8, 14, 0.72);
}

.login-modal.is-open {
  display: flex;
}

.login-modal__card {
  width: min(100%, 28rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 20, 30, 0.96);
  padding: 1.25rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.login-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.login-modal__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.login-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font: inherit;
}

@keyframes loginKenBurns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}

@keyframes loginOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

@keyframes loginBeamSweep {
  0% { transform: translateX(-30%) rotate(8deg); opacity: 0.25; }
  50% { transform: translateX(18%) rotate(8deg); opacity: 0.7; }
  100% { transform: translateX(42%) rotate(8deg); opacity: 0.2; }
}

@keyframes loginMoteDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  12% { opacity: 0.85; }
  70% { opacity: 0.55; }
  100% {
    opacity: 0;
    transform: translate3d(28px, -110vh, 0) scale(1.15);
  }
}

@keyframes loginScan {
  0% { top: -35%; opacity: 0; }
  15% { opacity: 0.8; }
  50% { opacity: 0.35; }
  100% { top: 105%; opacity: 0; }
}

@keyframes loginLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

@keyframes loginCardFloat {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
  }
  50% {
    box-shadow:
      0 16px 34px rgba(0, 0, 0, 0.42),
      0 0 24px rgba(142, 200, 192, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    border-color: rgba(212, 180, 131, 0.35);
  }
}

@keyframes loginPanelBreath {
  0%, 100% { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
  50% { box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 180, 131, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
}

@keyframes loginShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes loginRise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes loginSlide {
  from { opacity: 0; transform: translate3d(28px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes loginGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .login-ops__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-stat:nth-child(5),
  .login-stat:nth-child(6) {
    grid-column: span 1;
  }

  .login-panel-wrap {
    order: 2;
  }
}

@media (max-width: 520px) {
  .login-ops__grid {
    grid-template-columns: 1fr 1fr;
  }

  .login-brand__title {
    font-size: 2.35rem;
  }
}

@media (min-width: 1600px) {
  .login-shell {
    max-width: min(92rem, 96vw);
    padding-left: clamp(1.5rem, 3vw, 3.5rem);
    padding-right: clamp(1.5rem, 3vw, 3.5rem);
  }
}

@media (min-width: 2560px) {
  .login-brand__title {
    font-size: clamp(3rem, 2.5vw, 4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero__img,
  .login-orb,
  .login-beam,
  .login-mote,
  .login-scan,
  .login-stat,
  .login-brand,
  .login-ops,
  .login-panel-wrap,
  .login-panel,
  .login-panel::before,
  .login-panel::after,
  .login-live-dot,
  .login-stat::after {
    animation: none !important;
  }

  .login-motes,
  .login-beam,
  .login-scan {
    display: none;
  }
}
