.msr88-landing {
  --msr88-red: #b30000;
  --msr88-panel: #3c0102;
  --msr88-panel-border: rgba(255, 255, 255, 0.12);
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 4vw, 40px) clamp(16px, 3vw, 24px);
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: radial-gradient(
    ellipse 90% 70% at 50% 35%,
    #d40000 0%,
    #8b0000 42%,
    #3a0000 100%
  );
}

.msr88-landing *,
.msr88-landing *::before,
.msr88-landing *::after {
  box-sizing: border-box;
}

.msr88-landing-logo {
  flex-shrink: 0;
  text-align: center;
  line-height: 0;
}

.msr88-landing-logo img {
  max-width: min(300px, 78vw);
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.msr88-landing-panel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 960px;
  min-height: 400px;
  background: var(--msr88-panel);
  border: 1px solid var(--msr88-panel-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.msr88-landing-form-wrap {
  flex: 0 0 auto;
  width: 46%;
  max-width: 420px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--msr88-panel-border);
  margin: 20px;
  border-radius: 20px;
}

.msr88-landing-title {
  margin: 0 0 24px;
  text-align: center;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.msr88-landing-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msr88-landing-field label {
  display: none;
}

.msr88-landing-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  background: transparent;
  transition: border-color 0.2s;
}

.msr88-landing-input-row:focus-within {
  border-color: rgba(255, 255, 255, 0.75);
}

.msr88-landing-input-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.msr88-landing-input-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  height: 44px;
  appearance: none;
  -webkit-appearance: none;
}

.msr88-landing-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.msr88-landing-pw-toggle {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.msr88-landing-pw-toggle:hover {
  color: #fff;
}

.msr88-landing-remember-row {
  margin-top: 4px;
}

.msr88-landing-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  user-select: none;
}

.msr88-landing-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--msr88-red);
}

.msr88-landing-submit {
  margin-top: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border: 0 !important;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff !important;
  background: var(--msr88-red) !important;
  box-shadow: none !important;
  transition:
    background 0.2s,
    transform 0.15s;
}

.msr88-landing-submit:hover {
  background: #cc0000 !important;
  transform: translateY(-1px);
}

.msr88-landing-hero {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.msr88-landing-hero img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: contain;
  object-position: center bottom;
  padding: 10px 0 0 0;
}

.msr88-landing-hero-mobile {
  display: none;
  width: 100%;
  max-width: 480px;
  line-height: 0;
}

.msr88-landing-hero-mobile img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}

.msr88-landing-loading.loading_login {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.35);
}

.msr88-landing-loading.loading_login:not([style*="display: none"])::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--msr88-red);
  border-radius: 50%;
  animation: msr88-landing-spin 0.8s linear infinite;
}

@keyframes msr88-landing-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .msr88-landing {
    justify-content: flex-start;
    gap: clamp(16px, 4vw, 24px);
    padding: clamp(24px, 6vw, 40px) clamp(16px, 4vw, 20px)
      clamp(16px, 4vw, 24px);
    background: linear-gradient(180deg, #5c0000 0%, #9b0000 38%, #7a0000 100%);
  }

  .msr88-landing-logo img {
    max-width: min(260px, 72vw);
    max-height: 64px;
  }

  .msr88-landing-panel {
    flex-direction: column;
    max-width: 400px;
    min-height: 0;
    border-radius: 20px;
  }

  .msr88-landing-form-wrap {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    padding: clamp(28px, 6vw, 36px) clamp(22px, 5vw, 28px);
    border-radius: 0;
    border: none;
    margin: 0;
  }

  .msr88-landing-title {
    margin-bottom: 20px;
    font-size: 24px;
  }

  .msr88-landing-hero {
    display: none;
  }

  .msr88-landing-hero-mobile {
    display: block;
    max-width: min(400px, 92vw);
    margin-top: auto;
    position: absolute;
    bottom: 0;  
  }
}

@media (min-width: 769px) {
  .msr88-landing-hero-mobile {
    display: none !important;
  }
}
