/* In2Com V178: polished shared sign-in dialog (staff, reseller and customer).
   No authentication logic, input naming or button IDs changed. */
#staff-dialog.v178-login-dialog {
  padding: 0;
  width: min(800px, calc(100vw - 36px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  overflow: auto;
  border: 1px solid #d6e2eb;
  border-radius: 22px;
  background: #fff;
  color: #17354d;
  box-shadow: 0 28px 90px rgba(9, 37, 59, .28), 0 5px 18px rgba(9, 37, 59, .09);
}
#staff-dialog.v178-login-dialog::backdrop {
  background: rgba(9, 32, 51, .57);
  backdrop-filter: blur(4px);
}
#staff-dialog #staff-form { margin: 0; padding: 0; }
#staff-dialog .v178-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  min-height: 515px;
}
#staff-dialog .v178-login-brand {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  padding: 34px 30px 29px;
  color: #fff;
  background: linear-gradient(152deg, #153d5b 0%, #12304a 54%, #075b89 100%);
}
#staff-dialog .v178-login-brand::after {
  content: '';
  z-index: -1;
  position: absolute;
  width: 280px;
  height: 280px;
  right: -165px;
  bottom: 32px;
  border: 35px solid rgba(106,190,236,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(106,190,236,.07), 0 0 0 85px rgba(106,190,236,.045);
}
#staff-dialog .v178-login-wordmark {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  color: #fff;
}
#staff-dialog .v178-login-wordmark span:first-child { color: #6abeec; }
#staff-dialog .v178-login-wordmark .v178-login-wordmark-dot { color: #6abeec; }
#staff-dialog .v178-login-brand-main { margin-top: auto; margin-bottom: auto; }
#staff-dialog .v178-login-brand-eyebrow {
  display: block;
  color: #85cfee;
  font-size: .68rem;
  letter-spacing: .17em;
  font-weight: 800;
  line-height: 1.5;
}
#staff-dialog .v178-login-brand-main p {
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 2.45vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.22;
  max-width: 16ch;
}
#staff-dialog .v178-login-brand-foot {
  color: #d0e9f6;
  font-size: .72rem;
  line-height: 1.65;
  font-weight: 500;
}
#staff-dialog .v178-login-panel {
  display: flex;
  flex-direction: column;
  padding: 38px clamp(25px, 4vw, 44px) 26px;
  min-width: 0;
}
#staff-dialog .v178-login-eyebrow {
  color: #146b9b;
  font-weight: 800;
  letter-spacing: .16em;
  font-size: .69rem;
  line-height: 1.4;
  margin: 0 0 9px;
}
#staff-dialog #staff-title {
  font-size: clamp(1.55rem, 2.5vw, 1.82rem);
  letter-spacing: -.035em;
  font-weight: 800;
  line-height: 1.2;
  color: #12304a;
  margin: 0;
}
#staff-dialog .v178-login-intro {
  margin: 8px 0 26px;
  color: #5b7082;
  font-size: .88rem;
  line-height: 1.45;
}
#staff-dialog .v178-login-field {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.4;
  color: #29485d;
  margin: 0 0 16px;
}
#staff-dialog .v178-login-field > span { display: block; margin-bottom: 7px; }
#staff-dialog .v178-login-field input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border-radius: 9px;
  border: 1px solid #b9cbd9;
  padding: 11px 13px;
  color: #12304a;
  background: #fff;
  font-size: .96rem;
  line-height: 1.4;
  box-shadow: none;
}
#staff-dialog .v178-login-field input::placeholder { color: #8497a7; opacity: 1; font-weight: 400; }
#staff-dialog .v178-login-field input:focus {
  outline: 2px solid #58b5e5;
  outline-offset: 1px;
  border-color: #005c96;
  box-shadow: none;
}
#staff-dialog .v178-login-password-actions {
  display: flex;
  gap: 8px 17px;
  flex-wrap: wrap;
  align-items: center;
  margin: -7px 0 12px;
}
#staff-dialog .v178-login-password-actions button {
  font: inherit;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  background: none;
  color: #075d93;
  border: 0;
  border-radius: 4px;
  padding: 2px 0;
  cursor: pointer;
}
#staff-dialog .v178-login-password-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
#staff-dialog .v178-login-password-actions button:focus-visible { outline: 2px solid #005c96; outline-offset: 3px; }
#staff-dialog #staff-error:not([hidden]) {
  display: block;
  margin: 3px 0 11px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #edb7b7;
  color: #942525;
  background: #fff3f3;
  font-size: .81rem;
  font-weight: 500;
  line-height: 1.5;
}
#staff-dialog .v178-login-recovery {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  margin: 0 0 22px;
  font-size: .77rem;
  font-weight: 600;
}
#staff-dialog .v178-login-recovery a,
#staff-dialog .v178-login-register a { color: #075d93; text-decoration: none; font-weight: 750; }
#staff-dialog .v178-login-recovery a:hover,
#staff-dialog .v178-login-register a:hover { text-decoration: underline; text-underline-offset: 3px; }
#staff-dialog .v178-login-recovery span { color: #7890a1; font-size: .70rem; font-weight: 400; }
#staff-dialog .v178-login-buttons { display: flex; flex-direction: row; gap: 9px; margin: 0 0 20px; }
#staff-dialog .v178-login-buttons .btn {
  border-radius: 9px;
  min-height: 46px;
  font-weight: 750;
  font-size: .90rem;
  padding: 10px 16px;
  margin: 0;
}
#staff-dialog .v178-login-submit { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; }
#staff-dialog .v178-login-submit span { font-size: 1.12rem; font-weight: 400; }
#staff-dialog #staff-cancel { flex: 0 0 auto; border-color: #c8d8e3; color: #29485d; }
#staff-dialog #staff-cancel:hover { background: #edf5fa; border-color: #a3c4d9; }
#staff-dialog .v178-login-register {
  display: block;
  margin-top: auto;
  border-top: 1px solid #e5edf3;
  padding-top: 17px;
  color: #5b7082;
  font-size: .78rem;
  line-height: 1.5;
}
@media (max-width: 680px) {
  #staff-dialog.v178-login-dialog { width: min(455px, calc(100vw - 24px)); border-radius: 16px; }
  #staff-dialog .v178-login-layout { display: block; min-height: 0; }
  #staff-dialog .v178-login-brand { display: none; }
  #staff-dialog .v178-login-panel { padding: 27px 23px 24px; }
  #staff-dialog .v178-login-eyebrow { margin-bottom: 10px; }
  #staff-dialog .v178-login-intro { margin-bottom: 23px; }
}
@media (max-width: 360px) {
  #staff-dialog .v178-login-panel { padding: 24px 17px 20px; }
  #staff-dialog .v178-login-buttons { flex-wrap: wrap; }
  #staff-dialog .v178-login-buttons .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #staff-dialog.v178-login-dialog, #staff-dialog.v178-login-dialog * { scroll-behavior: auto; }
}
