:root {
  --blue-700: #174c91;
  --blue-600: #1f63b5;
  --coral-500: #f2616d;
  --mint-400: #59dfba;
  --text: #122238;
  --muted: #68778b;
  --border: #dce5ef;
  --danger: #c9264d;
  --radius-lg: 26px;
  --radius-sm: 12px;
  --transition: 180ms ease;
  font-size: 16px;
}

@property --login-edge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #061321;
  color: var(--text);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.login-transitioning {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

.world-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #061321;
  pointer-events: none;
}

.world-stage__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.03);
}

.world-stage__traffic {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.traffic-route {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.traffic-route--flight {
  stroke: #80d9ff;
  stroke-width: 1.25;
  filter: drop-shadow(0 0 3px rgba(87, 194, 241, 0.48));
}

.traffic-route--ship {
  stroke: #65dfbd;
  stroke-width: 1.15;
  stroke-dasharray: 3 6;
  filter: drop-shadow(0 0 2px rgba(74, 213, 174, 0.42));
}

.traffic-vehicle {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

.traffic-vehicle__halo {
  fill: rgba(192, 237, 255, 0.08);
  stroke: rgba(175, 231, 255, 0.26);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.traffic-vehicle--flight {
  fill: #e4f8ff;
  stroke: #e4f8ff;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(159, 226, 255, 0.95));
}

.traffic-vehicle--ship {
  fill: none;
  stroke: #91f1d5;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(89, 224, 187, 0.9));
}

.traffic-endpoint {
  fill: #e8f9ff;
  stroke: rgba(130, 218, 255, 0.62);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(120, 211, 249, 0.86));
}

.traffic-endpoint--arrival {
  fill: #a0f5da;
  stroke: rgba(91, 225, 188, 0.7);
}

.world-stage__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 12, 22, 0.5) 0%, rgba(3, 12, 22, 0.2) 34%, transparent 68%),
    linear-gradient(180deg, rgba(2, 9, 18, 0.24), transparent 22%, transparent 72%, rgba(2, 9, 18, 0.46));
}

.world-stage__scan {
  position: absolute;
  z-index: 2;
  top: -25%;
  bottom: -25%;
  width: 23%;
  opacity: 0.32;
  background: linear-gradient(90deg, transparent, rgba(112, 205, 243, 0.06), transparent);
  transform: skewX(-12deg);
  animation: globalScan 13s linear infinite;
}

.network-heading {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(226, 244, 255, 0.7);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

.network-heading__signal {
  width: 8px;
  height: 8px;
  border: 1px solid #d9fff5;
  border-radius: 50%;
  background: var(--mint-400);
  box-shadow: 0 0 0 5px rgba(89, 223, 186, 0.12), 0 0 16px rgba(89, 223, 186, 0.78);
  animation: signalPulse 2.3s ease-in-out infinite;
}

.login-layout {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 4fr 3fr;
  align-items: center;
  padding: 54px 0;
}

.login-panel {
  position: relative;
  isolation: isolate;
  grid-column: 1;
  justify-self: center;
  width: min(100%, 446px);
  padding: 34px 40px 29px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(250, 252, 255, 0.94);
  box-shadow: 0 34px 90px rgba(0, 7, 18, 0.56), 0 0 0 1px rgba(71, 131, 185, 0.08);
  backdrop-filter: blur(25px) saturate(1.15);
}

.login-panel::before {
  content: '';
  position: absolute;
  z-index: 4;
  inset: -4px;
  padding: 4px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: conic-gradient(
    from var(--login-edge-angle),
    #174c91 0deg,
    #2c88cc 58deg,
    #78d8f5 104deg,
    #f2616d 164deg,
    #f79b9f 214deg,
    #2c88cc 278deg,
    #174c91 360deg
  );
  filter: drop-shadow(0 0 5px rgba(44, 136, 204, 0.34));
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: loginEdgeFlow 7.5s linear infinite;
}

.login-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -9px;
  padding: 9px;
  border-radius: calc(var(--radius-lg) + 9px);
  background: conic-gradient(
    from var(--login-edge-angle),
    rgba(23, 76, 145, 0.42),
    rgba(44, 136, 204, 0.38),
    rgba(120, 216, 245, 0.3),
    rgba(242, 97, 109, 0.38),
    rgba(23, 76, 145, 0.42)
  );
  opacity: 0.28;
  filter: blur(17px);
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: loginEdgeFlow 7.5s linear infinite, loginEdgeAura 4.8s ease-in-out infinite;
}

.login-panel__topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 27px;
  margin-bottom: 2px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.version-badge {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #7b8799;
  letter-spacing: 0.07em;
}

.login-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  text-align: center;
}

.login-header__logo {
  width: 112px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 2px;
  filter: drop-shadow(0 8px 14px rgba(20, 42, 69, 0.12));
}

.login-header__eyebrow {
  margin: 0 0 5px;
  color: var(--blue-700);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-header__title {
  --mofes-final-size: clamp(1.62rem, 2.1vw, 1.98rem);
  margin: 0;
  color: #0d2038;
  font-size: var(--mofes-final-size);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.mofes-name {
  --mofes-final-size: clamp(1.2rem, 1.65vw, 1.48rem);
  display: inline-grid;
  place-items: center;
  max-width: 100%;
  min-height: calc(var(--mofes-final-size) * 1.2);
  margin: 7px 0 0;
  line-height: 1.14;
  white-space: nowrap;
}

.mofes-name__expanded,
.mofes-name__compact {
  grid-area: 1 / 1;
  background: linear-gradient(90deg, #174c91 0%, #2c88cc 52%, #68bde7 100%);
  background-clip: text;
  color: #1f63b5;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mofes-name__expanded {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.34em;
  animation: mofesNameCompose 3.2s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

.mofes-name__compact {
  opacity: 0;
  font-size: var(--mofes-final-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  animation: mofesNameReveal 3.2s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

.mofes-name__word {
  display: inline-flex;
  align-items: baseline;
}

.mofes-name strong {
  color: currentColor;
  font-weight: 700;
}

.mofes-name__tail {
  display: inline-block;
  max-width: 7em;
  overflow: hidden;
  opacity: 1;
  font-weight: 500;
  animation: mofesNameContract 3.2s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

.login-form {
  position: relative;
  display: grid;
  gap: 17px;
}

.login-form.is-processing::after {
  content: '';
  position: absolute;
  z-index: 5;
  inset: -4px;
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(248, 250, 252, 0.45), rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.45));
  background-size: 220% 100%;
  animation: shimmer 1.3s linear infinite;
}

.form-field {
  display: grid;
  gap: 7px;
}

label {
  color: #293a50;
  font-size: 0.8rem;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
}

.field-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  width: 18px;
  height: 18px;
  color: #7b8ba0;
  transform: translateY(-50%);
  transition: color var(--transition);
  pointer-events: none;
}

.field-icon--user::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6px;
  width: 6px;
  height: 6px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.field-icon--user::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 14px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.field-icon--lock::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 7px;
  width: 12px;
  height: 10px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.field-icon--lock::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.input-wrapper:focus-within .field-icon {
  color: var(--blue-600);
}

input[type='text'],
input[type='password'] {
  width: 100%;
  height: 52px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.input-wrapper--with-icon input {
  padding-left: 50px;
}

.input-wrapper--password input {
  padding-right: 54px;
}

input::placeholder {
  color: #a1adbc;
}

input:focus {
  border-color: rgba(31, 99, 181, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 99, 181, 0.1);
}

input.is-invalid {
  border-color: rgba(201, 38, 77, 0.7);
  box-shadow: 0 0 0 4px rgba(201, 38, 77, 0.09);
  animation: shake 320ms ease;
}

.input-focus-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.password-toggle {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  outline: none;
  background: transparent;
  color: #75869b;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color var(--transition), background var(--transition);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: rgba(31, 99, 181, 0.08);
  color: var(--blue-600);
}

.password-toggle__icon {
  position: relative;
  width: 17px;
  height: 11px;
  border: 1.7px solid currentColor;
  border-radius: 50% / 65%;
}

.password-toggle__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-active .password-toggle__icon::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 4px;
  left: -3px;
  width: 21px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(-42deg);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.72rem;
  animation: fadeIn 160ms ease;
}

.login-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 2px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(125deg, #174c91, #236bb9 72%, #2d7fc7);
  box-shadow: 0 12px 24px rgba(23, 76, 145, 0.24);
  color: #fff;
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.login-submit__label,
.login-submit__arrow {
  position: relative;
  z-index: 2;
}

.login-submit__arrow {
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.login-submit__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.28) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.login-submit:disabled {
  opacity: 0.48;
  box-shadow: none;
  cursor: not-allowed;
}

.login-submit:not(:disabled):hover,
.login-submit:not(:disabled):focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(23, 76, 145, 0.32);
}

.login-submit:not(:disabled):hover .login-submit__arrow {
  transform: translateX(4px);
}

.login-submit:not(:disabled):hover .login-submit__glow,
.login-submit:not(:disabled):focus .login-submit__glow,
.login-submit.is-animating .login-submit__glow {
  transform: translateX(120%);
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid #e5ebf2;
}

.login-footer__copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #78879a;
  font-size: 0.7rem;
}

.security-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: #6f8197;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-footer__signature {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 34px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  outline: none;
  background: transparent;
  cursor: default;
}

.login-footer__brand {
  display: block;
  width: 38px;
  height: auto;
  object-fit: contain;
}

.login-footer__credit {
  position: absolute;
  top: 2px;
  left: 50%;
  color: #929dac;
  font-size: 0.25rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.support-panel {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.support-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 19, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 200ms ease;
}

.support-panel__content {
  position: relative;
  width: min(100%, 420px);
  padding: 34px 38px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 8, 20, 0.42);
  animation: popIn 220ms ease;
}

.support-panel__content h2 {
  margin: 0 0 8px;
}

.support-panel__content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.support-panel__content a {
  color: var(--blue-700);
  font-weight: 600;
}

.support-panel__actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.support-panel__actions a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(31, 99, 181, 0.09);
  text-decoration: none;
}

.support-panel__actions a:hover,
.support-panel__actions a:focus-visible {
  background: rgba(31, 99, 181, 0.15);
  outline: none;
}

.support-panel__actions span {
  color: #7a8798;
  font-size: 0.77rem;
}

.support-panel__logo {
  width: 100px;
  margin-bottom: 12px;
}

.support-panel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #637287;
  font-size: 1.3rem;
  cursor: pointer;
}

.toast-stack {
  position: fixed;
  z-index: 40;
  right: clamp(16px, 4vw, 44px);
  bottom: 26px;
  display: grid;
  gap: 10px;
}

.login-transition {
  --foodeast-green-deep: #173a2a;
  --foodeast-green: #3f6849;
  --foodeast-green-light: #7da287;
  --foodeast-red: #ed1c2e;
  --foodeast-red-light: #ff5c68;
  --foodeast-cream: #f7f3e9;
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
}

body.login-transitioning .login-transition {
  visibility: visible;
  animation: loginTransitionLifecycle 3s cubic-bezier(0.65, 0, 0.25, 1) both;
}

body.login-transitioning .login-layout {
  pointer-events: none;
  animation: loginLevelExit 720ms cubic-bezier(0.62, 0, 0.9, 0.4) both;
}

body.login-transitioning .world-stage {
  animation: mapLevelExit 1.1s cubic-bezier(0.55, 0, 0.8, 0.25) both;
}

.login-transition__plane {
  position: absolute;
  z-index: 1;
  inset: -20%;
  transform: translate3d(-118%, 0, 0) skewX(-12deg);
}

body.login-transitioning .login-transition__plane {
  animation: foodEastPlaneSweep 1.18s cubic-bezier(0.72, 0, 0.2, 1) both;
}

.login-transition__plane--forest {
  background: linear-gradient(115deg, #0b2018, var(--foodeast-green-deep) 58%, #577661);
  animation-delay: 50ms !important;
}

.login-transition__plane--red {
  background: linear-gradient(115deg, #7d0713, var(--foodeast-red) 54%, var(--foodeast-red-light));
  animation-delay: 180ms !important;
}

.login-transition__plane--sage {
  background: linear-gradient(115deg, #dfe7df, var(--foodeast-green-light) 52%, #294e37);
  mix-blend-mode: screen;
  opacity: 0.86;
  animation-delay: 320ms !important;
}

.login-transition__rings {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
}

.login-transition__rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(247, 243, 233, 0.94);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  box-shadow:
    0 0 28px rgba(237, 28, 46, 0.42),
    inset 0 0 20px rgba(125, 162, 135, 0.46);
  will-change: width, height, opacity;
}

body.login-transitioning .login-transition__rings i {
  animation: foodEastRingLevel 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body.login-transitioning .login-transition__rings i:nth-child(1) {
  animation-delay: 880ms;
}

body.login-transitioning .login-transition__rings i:nth-child(2) {
  border-color: rgba(237, 28, 46, 0.92);
  animation-delay: 1.13s;
}

body.login-transitioning .login-transition__rings i:nth-child(3) {
  border-color: rgba(125, 162, 135, 0.96);
  animation-delay: 1.38s;
}

.login-transition__core {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(72vw, 360px);
  opacity: 0;
  transform: scale(0.72);
}

.login-transition__core img {
  width: min(48vw, 210px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.42));
}

.login-transition__core span {
  color: #fff;
  font-size: clamp(0.66rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 92, 104, 0.52);
}

.login-transition__core small {
  color: rgba(247, 243, 233, 0.72);
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

body.login-transitioning .login-transition__core {
  animation: foodEastCoreArrival 1.52s 800ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.login-transition__flare {
  position: absolute;
  z-index: 5;
  inset: -35vmax;
  background:
    radial-gradient(
      circle at 50% 50%,
      #fffdf7 0 8%,
      var(--foodeast-cream) 18%,
      rgba(125, 162, 135, 0.78) 34%,
      rgba(237, 28, 46, 0.34) 49%,
      rgba(247, 243, 233, 0.96) 67%,
      var(--foodeast-cream) 78% 100%
    );
  clip-path: circle(0 at 50% 50%);
  opacity: 0;
  will-change: clip-path, opacity;
}

body.login-transitioning .login-transition__flare {
  animation: foodEastFinalFlare 800ms 2.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(10, 28, 48, 0.96);
  box-shadow: 0 18px 40px rgba(0, 7, 16, 0.38);
  color: #fff;
  font-size: 0.8rem;
  animation: toastIn 240ms ease;
}

.toast--error {
  border-left: 3px solid var(--coral-500);
}

.toast--success {
  border-left: 3px solid var(--mint-400);
}

.toast__icon {
  display: grid;
  place-items: center;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--mint-400);
  color: #082219;
  font-size: 0.7rem;
  font-weight: 800;
}

.toast--error .toast__icon {
  background: var(--coral-500);
  color: #fff;
}

.toast__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

@keyframes globalScan {
  from { left: -30%; }
  to { left: 120%; }
}

@keyframes loginEdgeFlow {
  to { --login-edge-angle: 360deg; }
}

@keyframes loginEdgeAura {
  0%, 100% { opacity: 0.18; transform: scale(0.992); }
  50% { opacity: 0.34; transform: scale(1.012); }
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.76; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes mofesNameCompose {
  0%, 38% {
    gap: 0.34em;
    font-size: 0.76rem;
    letter-spacing: 0;
    opacity: 1;
    transform: scale(1);
  }
  68%, 100% {
    gap: 0.035em;
    font-size: 1rem;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes mofesNameReveal {
  0%, 58% {
    opacity: 0;
    letter-spacing: 0.18em;
    transform: scale(0.9);
  }
  78%, 100% {
    opacity: 1;
    letter-spacing: 0.08em;
    transform: scale(1);
  }
}

@keyframes mofesNameContract {
  0%, 38% {
    max-width: 7em;
    opacity: 1;
  }
  68%, 100% {
    max-width: 0;
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

@keyframes shimmer {
  from { background-position: -180% 0; }
  to { background-position: 180% 0; }
}

@keyframes loginLevelExit {
  to {
    opacity: 0;
    transform: translate3d(-7%, 0, 0) scale(0.96);
    filter: blur(10px);
  }
}

@keyframes mapLevelExit {
  to {
    transform: scale(1.12);
    filter: brightness(1.34) saturate(1.2) blur(3px);
  }
}

@keyframes foodEastPlaneSweep {
  0% { transform: translate3d(-118%, 0, 0) skewX(-12deg); }
  58%, 100% { transform: translate3d(118%, 0, 0) skewX(-12deg); }
}

@keyframes foodEastRingLevel {
  0% {
    width: 23px;
    height: 23px;
    opacity: 0;
  }
  18% { opacity: 1; }
  100% {
    width: min(112vmax, 1680px);
    height: min(112vmax, 1680px);
    opacity: 0;
  }
}

@keyframes foodEastCoreArrival {
  0% { opacity: 0; transform: scale(0.72); filter: blur(10px); }
  28%, 70% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.08); filter: blur(4px); }
}

@keyframes foodEastFinalFlare {
  0% {
    clip-path: circle(0 at 50% 50%);
    opacity: 0;
  }
  35% { opacity: 1; }
  100% {
    clip-path: circle(71% at 50% 50%);
    opacity: 1;
  }
}

@keyframes loginTransitionLifecycle {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

body.login-success .login-panel {
  box-shadow: 0 34px 90px rgba(0, 7, 18, 0.56), 0 0 0 2px rgba(89, 223, 186, 0.28);
}

body.motion-reduce *,
body.motion-reduce *::before,
body.motion-reduce *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body.motion-reduce.login-transitioning .login-transition {
  visibility: visible;
  background: var(--foodeast-cream, #f7f3e9);
  opacity: 1;
}

body.motion-reduce.login-transitioning .login-transition > * {
  display: none;
}

@media (max-width: 900px) {
  .world-stage__map {
    object-position: 47% center;
  }

  .world-stage__vignette {
    background: rgba(3, 12, 22, 0.34);
  }

  .login-layout {
    display: flex;
    justify-content: center;
    padding: 70px 22px;
  }

  .network-heading {
    top: 24px;
    left: 24px;
  }

}

@media (max-width: 620px) {
  .world-stage__map {
    width: 190%;
    max-width: none;
    left: -45%;
    object-fit: cover;
    opacity: 0.8;
  }

  .world-stage__vignette {
    background: rgba(3, 12, 22, 0.5);
  }

  .network-heading {
    top: 18px;
    left: 18px;
    font-size: 0.56rem;
  }

  .login-layout {
    padding: 60px 15px 46px;
  }

  .login-panel {
    padding: 29px 22px 24px;
    border-radius: 22px;
  }

  .login-panel__topline {
    margin-bottom: 22px;
  }

  .login-header {
    gap: 7px;
    margin-bottom: 26px;
  }

  .login-header__logo {
    width: 96px;
    height: 66px;
  }

  .login-header__title {
    --mofes-final-size: 1.48rem;
  }

  .mofes-name {
    --mofes-final-size: 1.25rem;
  }

  .login-footer {
    align-items: flex-start;
  }

  .login-footer__copy {
    max-width: 165px;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .login-footer {
    flex-direction: column;
    gap: 12px;
  }
}
