/* Safari CCTV — premium login (full-bleed resort hero + brand-first) */

.auth-premium {
  --auth-ink: #f4f7fa;
  --auth-muted: rgba(232, 241, 248, 0.72);
  --auth-line: rgba(180, 220, 230, 0.28);
  --auth-glass: rgba(6, 16, 24, 0.55);
  --auth-glass-strong: rgba(4, 12, 18, 0.72);
  --auth-accent: #3ec4d4;
  --auth-accent-deep: #1a8fa0;
  --auth-warm: #d8c4a0;
  --auth-font-display: "Cormorant Garamond", "Times New Roman", serif;
  --auth-font-ui: "Outfit", system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--auth-ink);
  font-family: var(--auth-font-ui);
  background: #061018;
  overflow-x: hidden;
}

.auth-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1rem, 3vw, 2.25rem);
  isolation: isolate;
}

/* Full-bleed iconic resort photo */
.auth-hero {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.auth-hero-media {
  position: absolute;
  inset: -4%;
  background-image: var(--auth-hero);
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  animation: authKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}

.auth-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 10, 16, 0.88) 0%, rgba(3, 12, 18, 0.52) 38%, rgba(4, 18, 28, 0.28) 62%, rgba(2, 10, 16, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 8, 14, 0.4) 0%, transparent 30%, transparent 58%, rgba(2, 8, 14, 0.78) 100%);
}

.auth-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes authKenBurns {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

.auth-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1rem, 5vh, 3.5rem) 0;
  min-height: 0;
}

.auth-brand-block {
  max-width: 34rem;
  justify-self: start;
  animation: authRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.auth-side {
  justify-self: end;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  animation: authRise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.auth-logo-under {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}

.auth-brand-mark {
  width: clamp(6.5rem, 16vw, 9.5rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: authLogoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.auth-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--auth-warm);
  font-weight: 500;
}

.auth-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--auth-accent);
  font-weight: 600;
}

.auth-brand-title {
  margin: 0;
  font-family: var(--auth-font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.auth-brand-lead {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--auth-muted);
}

.auth-signal-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.auth-signal-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: rgba(232, 241, 248, 0.88);
  letter-spacing: 0.02em;
}

.auth-signal-list i {
  color: var(--auth-accent);
  font-size: 1rem;
}

/* Sign-in panel — interaction surface, not a decorative card grid */
.auth-panel {
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--auth-glass-strong);
  border: 1px solid var(--auth-line);
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: authRise 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.auth-panel-head {
  margin-bottom: 1.35rem;
}

.auth-title {
  margin: 0;
  font-family: var(--auth-font-display);
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.auth-subtitle {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--auth-muted);
  line-height: 1.45;
}

.auth-alert {
  border-radius: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field .form-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 241, 248, 0.78);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(62, 196, 212, 0.85);
  pointer-events: none;
  font-size: 1.05rem;
}

.auth-input {
  padding-left: 2.65rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(180, 220, 230, 0.22) !important;
  color: #fff !important;
  border-radius: 0.85rem !important;
  min-height: 3.15rem;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
  color: rgba(210, 224, 234, 0.35);
  font-weight: 300;
}

.auth-input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(62, 196, 212, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(62, 196, 212, 0.18) !important;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.15rem 0 0.35rem;
}

.auth-remember .form-check-input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(180, 220, 230, 0.35);
}

.auth-remember .form-check-input:checked {
  background-color: var(--auth-accent-deep);
  border-color: var(--auth-accent);
}

.auth-remember .form-check-label {
  font-size: 0.88rem;
  color: var(--auth-muted);
  font-weight: 400;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--auth-font-ui);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(110deg, #7fe0ec 0%, var(--auth-accent) 45%, #2aa8b8 100%);
  box-shadow: 0 12px 28px rgba(30, 140, 160, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover {
  color: #041018;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(30, 140, 160, 0.42);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-panel .btn-link {
  color: var(--auth-accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-panel .btn-link:hover {
  color: #9ae8f0;
}

.auth-panel .h4,
.auth-card .h4 {
  font-family: var(--auth-font-display);
  color: #fff;
}

.auth-card .text-muted,
.auth-panel .text-muted {
  color: var(--auth-muted) !important;
}

.auth-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 232, 240, 0.55);
  animation: authRise 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.auth-foot-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--auth-accent);
  opacity: 0.7;
}

@keyframes authRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes authLogoIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .auth-main {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.35rem;
    margin: 0 auto;
  }

  .auth-brand-block {
    order: 0;
    justify-self: stretch;
  }

  .auth-side {
    order: 1;
    justify-self: stretch;
    max-width: none;
  }

  .auth-panel {
    max-width: 440px;
    width: 100%;
    margin-inline: auto;
  }

  .auth-brand-title {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .auth-signal-list {
    display: none;
  }
}

@media (max-width: 576px) {
  .auth-stage {
    padding: 1rem 0.85rem 1.25rem;
  }

  .auth-brand-block {
    text-align: center;
  }

  .auth-brand-lead {
    margin-inline: auto;
  }

  .auth-panel {
    max-width: none;
  }

  .auth-foot {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-hero-media,
  .auth-brand-block,
  .auth-side,
  .auth-panel,
  .auth-foot,
  .auth-brand-mark {
    animation: none !important;
  }

  .auth-hero-media {
    transform: none;
  }
}
