/* Login — soft white blur + subtle orange + hanging logos */
.login-page {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(165deg, #ffffff 0%, #fafafa 35%, #fff7ed 70%, #ffedd5 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

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

/* frosted white blur orbs */
.login-page::before,
.login-page::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}
.login-page::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: rgba(255, 255, 255, 0.95);
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.login-page::after {
  width: 440px;
  height: 440px;
  bottom: -100px;
  left: -60px;
  background: rgba(255, 237, 213, 0.55);
  animation: orbDrift 20s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 24px) scale(1.06); }
}

/* subtle orange accent strip */
.login-page {
  box-shadow: inset 0 0 120px rgba(234, 88, 12, 0.06);
}

/* ----- hanging logos (shared) ----- */
.bg-brand-layer {
  pointer-events: none;
  overflow: visible;
}

.bg-brand-layer--page {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hanging-logo {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: pendulum var(--dur, 5s) ease-in-out infinite alternate;
}

.hanging-logo__string {
  width: 2px;
  height: var(--string, 48px);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.35) 0%, rgba(234, 88, 12, 0.08) 100%);
  border-radius: 2px;
}

.hanging-logo__string--card {
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.5) 0%, rgba(234, 88, 12, 0.12) 100%);
  height: 20px;
}

.hanging-logo__frame {
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(254, 215, 170, 0.7);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: logoBob var(--bob, 7s) ease-in-out infinite alternate;
}

.hanging-logo__frame--card {
  padding: 0.35rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.15);
}

.hanging-logo__frame img {
  display: block;
  width: var(--size, 88px);
  height: auto;
  max-height: var(--size, 88px);
  object-fit: contain;
  border-radius: 6px;
}

@keyframes pendulum {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(10deg); }
}
@keyframes logoBob {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

/* background page positions */
.hanging-logo--bg-1 { top: 0; left: 4%; --dur: 5.5s; --string: 64px; --size: 100px; --bob: 6s; }
.hanging-logo--bg-2 { top: 0; right: 5%; --dur: 6.5s; --string: 56px; --size: 95px; --bob: 7.5s; animation-delay: -1.2s; }
.hanging-logo--bg-3 { top: 0; left: 42%; --dur: 7s; --string: 72px; --size: 115px; --bob: 8s; animation-delay: -2.5s; }
.hanging-logo--bg-4 { top: 0; right: 28%; --dur: 5.8s; --string: 50px; --size: 82px; --bob: 6.5s; animation-delay: -0.8s; }
.hanging-logo--bg-5 { top: 0; left: 16%; --dur: 6.2s; --string: 78px; --size: 90px; --bob: 7s; animation-delay: -3.5s; }
.hanging-logo--bg-6 { top: 0; right: 16%; --dur: 6.8s; --string: 60px; --size: 98px; --bob: 8s; animation-delay: -1.8s; }

@media (max-width: 900px) {
  .hanging-logo--bg-3 { left: 30%; }
  .hanging-logo__frame img { width: 70px !important; max-height: 70px !important; }
}

/* ----- flank layout ----- */
.login-shell {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.login-flank-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, 400px) minmax(240px, 1fr);
  gap: 0 2rem;
  align-items: center;
}

.login-flank {
  display: flex;
  align-items: center;
  min-height: 420px;
}

.login-flank--left { justify-content: flex-end; }
.login-flank--right { justify-content: flex-start; }

.flank-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 280px;
}

.flank-item {
  animation: flankFadeIn 0.7s ease backwards;
}
.flank-item--1 { animation-delay: 0.1s; }
.flank-item--2 { animation-delay: 0.25s; }

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

.login-flank--left .flank-item--1 { margin-right: 14px; }
.login-flank--left .flank-item--2 { margin-left: 10px; }
.login-flank--right .flank-item--1 { margin-left: 14px; }
.login-flank--right .flank-item--2 { margin-right: 10px; }

/* interactive hero chips */
.hero-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(254, 215, 170, 0.65);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.hero-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.14);
  border-color: rgba(234, 88, 12, 0.35);
}

.hero-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero-chip__icon--lg {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1rem;
  align-self: flex-start;
  margin-top: 2px;
}

.hero-chip--badge {
  padding: 0.45rem 1.1rem 0.45rem 0.5rem;
  gap: 0.55rem;
}

.hero-chip__text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.hero-chip--title {
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  gap: 0.35rem 0.45rem;
  border-radius: 20px;
  max-width: 100%;
}

.hero-chip__part {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.hero-chip__part i { color: #ea580c; font-size: 0.8rem; }
.hero-chip__part--accent { color: #ea580c; }
.hero-chip__part:hover {
  background: rgba(255, 247, 237, 0.9);
}

.hero-chip__dot {
  color: #d1d5db;
  font-weight: 300;
  font-size: 1.1rem;
}

.hero-chip--desc {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 22px;
  text-align: left;
}

.hero-chip__desc {
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* interactive brand chips */
.brand-chips {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #fed7aa;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.06);
}

.brand-chip:hover,
.brand-chip--active {
  transform: translateX(6px);
  border-color: #ea580c;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.16);
  background: #fff;
}

.brand-chip__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.28s;
}

.brand-chip:hover .brand-chip__icon,
.brand-chip--active .brand-chip__icon {
  transform: scale(1.08);
}

.brand-chip__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}

.brand-chip__icon i {
  color: #ea580c;
  font-size: 1rem;
}

.brand-chip__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.brand-chip__body strong {
  font-size: 0.88rem;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.2;
}

.brand-chip__body small {
  font-size: 0.65rem;
  color: #9ca3af;
  font-weight: 500;
}

.brand-chip__arrow {
  color: #d1d5db;
  font-size: 0.65rem;
  transition: transform 0.28s, color 0.28s;
}

.brand-chip:hover .brand-chip__arrow,
.brand-chip--active .brand-chip__arrow {
  color: #ea580c;
  transform: translateX(3px);
}

.brand-chip--salum:hover { border-left: 3px solid #ea580c; }
.brand-chip--six:hover { border-left: 3px solid #f97316; }
.brand-chip--ssn:hover { border-left: 3px solid #c2410c; }

/* center form + connectors */
.login-main {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-connector {
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.25), transparent);
  pointer-events: none;
  z-index: 0;
}
.login-connector--left {
  left: -1.75rem;
  transform: translateY(-50%) rotate(-8deg);
}
.login-connector--right {
  right: -1.75rem;
  transform: translateY(-50%) rotate(8deg);
}

@media (max-width: 900px) {
  .login-flank-layout {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
  }
  .login-flank {
    min-height: auto;
    justify-content: center !important;
  }
  .login-flank--left { order: 1; }
  .login-main { order: 2; }
  .login-flank--right { order: 3; }
  .flank-stack { max-width: 100%; align-items: center; }
  .login-flank--left .flank-item--1,
  .login-flank--left .flank-item--2,
  .login-flank--right .flank-item--1,
  .login-flank--right .flank-item--2 { margin-left: 0; margin-right: 0; }
  .hero-chip--title { justify-content: center; }
  .hero-chip--desc { text-align: center; flex-direction: column; align-items: center; }
  .brand-chips { max-width: 320px; }
  .brand-chip:hover,
  .brand-chip--active { transform: translateY(-2px); }
  .login-connector { display: none; }
}

.login-wrapper {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 26px;
  padding: 0 1.4rem 1.25rem;
  padding-top: 0;
  box-shadow:
    0 24px 48px rgba(234, 88, 12, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(254, 215, 170, 0.5);
  position: relative;
  overflow: visible;
  z-index: 1;
  animation: cardPopIn 0.6s ease backwards;
}

@keyframes cardPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #fed7aa, #ea580c, #fed7aa);
}

/* card hanging logos row */
.card-hanging-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 0.2rem;
  margin-bottom: 0.35rem;
  min-height: 78px;
}

.hanging-logo--card {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
}

.hanging-logo--card-1 { --dur: 4.5s; animation-delay: 0s; }
.hanging-logo--card-2 { --dur: 5.2s; animation-delay: -1.5s; }
.hanging-logo--card-3 { --dur: 4.8s; animation-delay: -0.7s; }

.hanging-logo--card .hanging-logo__frame img {
  width: 44px;
  max-height: 44px;
}

.welcome-text { text-align: center; margin-bottom: 1rem; }
.welcome-text h2 { color: #111827; font-weight: 700; font-size: 1.22rem; }
.welcome-text h2 i { color: #ea580c; margin-right: 5px; }
.welcome-text p { color: #6b7280; font-size: 0.82rem; margin-top: 0.2rem; }

.role-tabs {
  display: flex;
  background: rgba(255, 247, 237, 0.9);
  border-radius: 999px;
  padding: 0.18rem;
  margin-bottom: 0.9rem;
  border: 1px solid #fed7aa;
}
.role-tab {
  flex: 1;
  text-align: center;
  padding: 0.52rem 0.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #9a3412;
  cursor: pointer;
  transition: all 0.25s;
  background: transparent;
  border: none;
}
.role-tab i { margin-right: 5px; }
.role-tab.active {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}
.role-tab:not(.active):hover { background: rgba(234, 88, 12, 0.07); }

.login-form { display: flex; flex-direction: column; gap: 0.7rem; }

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  padding: 0.12rem 1rem;
  border: 1.5px solid #e5e7eb;
  transition: all 0.25s;
}
.input-group:focus-within {
  border-color: #ea580c;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}
.input-group i.field-icon { color: #ea580c; font-size: 0.86rem; width: 1.4rem; text-align: center; }
.input-group input {
  background: transparent !important;
  border: none !important;
  padding: 0.82rem 0.3rem;
  width: 100%;
  color: #111827 !important;
  font-size: 0.92rem;
  outline: none;
  -webkit-text-fill-color: #111827;
}
.input-group input::placeholder { color: #9ca3af !important; opacity: 1; }

.input-toggle {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.3rem;
}
.input-toggle:hover { color: #ea580c; }

.btn-signin {
  background: linear-gradient(135deg, #ea580c, #f97316);
  border: none;
  padding: 0.88rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.28);
  margin-top: 0.25rem;
}
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(234, 88, 12, 0.35); }
.btn-signin:disabled { opacity: 0.75; cursor: wait; transform: none; }

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  font-size: 0.82rem;
  text-align: center;
}

.login-error-info {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.footer-note {
  margin-top: 0.85rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.6rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.7rem;
}
.footer-note i { color: #ea580c; }

/* ----- sign-in splash overlay ----- */
.animation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.animation-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.splash-inner {
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bg-brand-layer--splash {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 0.5rem;
}

.hanging-logo--splash {
  top: 0;
}

.hanging-logo--splash-1 { left: 12%; --dur: 3s; --string: 80px; --size: 110px; --bob: 4s; }
.hanging-logo--splash-2 { left: 42%; --dur: 3.5s; --string: 95px; --size: 130px; --bob: 4.5s; animation-delay: -1s; }
.hanging-logo--splash-3 { right: 12%; left: auto; --dur: 3.2s; --string: 85px; --size: 115px; --bob: 4.2s; animation-delay: -0.5s; }

.hanging-logo--splash .hanging-logo__frame {
  background: rgba(255, 255, 255, 0.95);
  border-color: #fed7aa;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.2);
}

.splash-title {
  color: #7c2d12;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: 0.5rem;
}

.splash-sub {
  color: #ea580c;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

.login-missing-logos {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.9);
  color: #9a3412;
  font-size: 0.66rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #fed7aa;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 600px) {
  .login-shell--center { max-width: 100%; padding: 0 0.25rem; }
  .hero-pill--title { font-size: 1.15rem; padding: 0.5rem 1.1rem; }
  .hero-pill--desc { font-size: 0.78rem; border-radius: 20px; }
  .login-wrapper { padding-left: 1.25rem; padding-right: 1.25rem; }
  .card-hanging-row { gap: 1rem; min-height: 95px; }
  .hanging-logo--card .hanging-logo__frame img { width: 44px; max-height: 44px; }
}
