* {
  box-sizing: border-box;
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050816;
  --bg-deep: #071026;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(190, 210, 255, 0.18);
  --line-strong: rgba(125, 211, 252, 0.36);
  --text: #f8fbff;
  --muted: rgba(226, 232, 240, 0.76);
  --soft: rgba(226, 232, 240, 0.58);
  --cyan: #38bdf8;
  --blue: #2563eb;
  --violet: #8b5cf6;
  --green: #34d399;
  --danger-bg: rgba(248, 113, 113, 0.13);
  --danger-line: rgba(248, 113, 113, 0.32);
  --danger-text: #fecaca;
  --success-bg: rgba(52, 211, 153, 0.13);
  --success-line: rgba(52, 211, 153, 0.32);
  --success-text: #bbf7d0;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

html {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
}

body::before {
  background:
    linear-gradient(rgba(147, 197, 253, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  content: "";
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.22), transparent 30%),
    radial-gradient(circle at 78% 28%, rgba(139, 92, 246, 0.22), transparent 32%),
    radial-gradient(circle at 56% 86%, rgba(52, 211, 153, 0.12), transparent 30%);
  content: "";
  filter: blur(34px);
  inset: -80px;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.login-shell {
  background:
    linear-gradient(135deg, rgba(5, 8, 22, 0.9), rgba(8, 17, 44, 0.84) 52%, rgba(6, 11, 29, 0.95)),
    radial-gradient(circle at 45% 28%, rgba(37, 99, 235, 0.16), transparent 34%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  height: 100vh;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.login-shell,
.brand-panel,
.auth-panel,
.auth-card {
  min-width: 0;
}

.login-shell::before {
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.36), transparent);
  content: "";
  height: 100%;
  left: calc(100% - 43.8%);
  opacity: 0.34;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 1;
}

.brand-panel {
  border-right: 1px solid rgba(190, 210, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  height: 100vh;
  overflow: hidden;
  padding: clamp(18px, 2.4vh, 26px) 6% clamp(18px, 2.6vh, 28px);
  position: relative;
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.brand-panel::before {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.1) 48%, rgba(52, 211, 153, 0.07)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  inset: 0;
  opacity: 0.78;
}

.brand-panel::after {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(139, 92, 246, 0.1) 42%, transparent 68%);
  border-radius: 999px;
  filter: blur(18px);
  height: 520px;
  left: -170px;
  top: 18%;
  width: 520px;
}

.ambient-field {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ambient-field span {
  animation: particleDrift 11s ease-in-out infinite;
  background: rgba(125, 211, 252, 0.84);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.72);
  height: 4px;
  opacity: 0.5;
  position: absolute;
  width: 4px;
}

.ambient-field span:nth-child(1) {
  left: 13%;
  top: 19%;
}

.ambient-field span:nth-child(2) {
  animation-delay: -2s;
  left: 41%;
  top: 12%;
}

.ambient-field span:nth-child(3) {
  animation-delay: -5s;
  left: 72%;
  top: 24%;
}

.ambient-field span:nth-child(4) {
  animation-delay: -4s;
  left: 19%;
  top: 68%;
}

.ambient-field span:nth-child(5) {
  animation-delay: -7s;
  left: 58%;
  top: 78%;
}

.ambient-field span:nth-child(6) {
  animation-delay: -9s;
  left: 83%;
  top: 62%;
}

.login-topbar,
.brand-copy,
.ai-visual {
  position: relative;
  z-index: 2;
}

.login-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.login-logo {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  color: #080d38;
  display: inline-flex;
  flex-direction: column;
  font-weight: 950;
  justify-content: center;
  line-height: 1;
  min-width: max-content;
  padding: 7px 10px 6px;
}

.login-logo-main {
  color: #07103d;
  display: block;
  font-size: 28px;
  font-weight: 950;
  line-height: 0.86;
  white-space: nowrap;
}

.login-logo-main span {
  color: #4f7cff;
}

.login-logo-mid {
  align-items: center;
  color: #546dff;
  display: flex;
  font-size: 15px;
  font-weight: 500;
  gap: 7px;
  justify-content: center;
  line-height: 1.08;
  margin-top: 3px;
  white-space: nowrap;
}

.login-logo-mid i {
  background: #5b5cff;
  display: block;
  height: 1px;
  opacity: 0.86;
  width: 22px;
}

.login-logo-tag {
  align-items: center;
  color: #101744;
  display: flex;
  font-size: 4.9px;
  font-weight: 950;
  gap: 4px;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 6px;
}

.login-logo-tag b {
  background: #4f7cff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  display: inline-block;
  height: 9px;
  width: 9px;
}

.login-home-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(190, 210, 255, 0.2);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  display: inline-flex;
  font-size: 9.75px;
  font-weight: 900;
  justify-content: center;
  min-height: 30px;
  padding: 7px 12px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.login-home-button:hover,
.login-home-button:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(125, 211, 252, 0.42);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.brand-copy {
  margin-top: clamp(42px, 7vh, 72px);
  max-width: 750px;
  padding: 0 0 clamp(12px, 1.8vh, 18px);
}

.eyebrow,
.auth-kicker {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(190, 210, 255, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  display: inline-flex;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 14px;
  min-height: 28px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.brand-copy h1 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
  line-height: 1.06;
  max-width: 720px;
  overflow-wrap: break-word;
}

.brand-copy p {
  color: var(--muted);
  font-size: 12.75px;
  line-height: 1.75;
  margin-top: 16px;
  max-width: 680px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(190, 210, 255, 0.16);
  border-radius: 999px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 9.75px;
  font-weight: 850;
  line-height: 1.25;
  padding: 7px 9px;
}

.ai-visual {
  margin: clamp(10px, 1.4vh, 16px) 0 0;
  max-width: min(720px, 100%);
}

.ai-visual::before {
  background:
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent),
    linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.18), transparent);
  border-radius: 8px;
  content: "";
  inset: -1px;
  opacity: 0.86;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ai-visual img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(190, 210, 255, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: min(29vh, 252px);
  object-fit: cover;
  position: relative;
  width: 100%;
}

.ai-visual figcaption {
  background: rgba(6, 11, 29, 0.78);
  border: 1px solid rgba(190, 210, 255, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin: -54px 18px 0;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(16px);
}

.ai-visual figcaption span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-visual figcaption strong {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.35;
}

.auth-panel {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 100vh;
  padding: clamp(24px, 4vh, 36px) 8%;
  position: relative;
}

.auth-panel::before,
.auth-panel::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.auth-panel::before {
  background:
    linear-gradient(rgba(147, 197, 253, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  inset: 0;
  opacity: 0.5;
}

.auth-panel::after {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.1) 48%, transparent 70%);
  border-radius: 999px;
  filter: blur(22px);
  height: 430px;
  right: -180px;
  top: 12%;
  width: 430px;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(6, 11, 29, 0.76);
  border: 1px solid rgba(190, 210, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 430px;
  overflow: hidden;
  padding: 30px;
  position: relative;
  width: 100%;
  z-index: 2;
  backdrop-filter: blur(22px);
}

.auth-card::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.48), rgba(139, 92, 246, 0));
  content: "";
  height: 1px;
  left: 24px;
  position: absolute;
  right: 24px;
  top: 0;
}

.auth-orb {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), rgba(125, 211, 252, 0.42) 18%, rgba(139, 92, 246, 0.13) 44%, transparent 68%);
  border-radius: 999px;
  filter: blur(1px);
  height: 140px;
  opacity: 0.8;
  position: absolute;
  right: -54px;
  top: -54px;
  width: 140px;
}

.auth-kicker {
  color: #bfdbfe;
  margin-bottom: 14px;
}

.auth-card h2 {
  color: #ffffff;
  font-size: 25.5px;
  font-weight: 950;
  line-height: 1.12;
  margin-bottom: 9px;
  position: relative;
}

.subtitle {
  color: var(--muted);
  font-size: 11.25px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 340px;
  position: relative;
}

.alert {
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 9px 10px;
  position: relative;
}

.alert-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  color: var(--danger-text);
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  color: var(--success-text);
}

.google-btn {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 11.25px;
  font-weight: 950;
  gap: 12px;
  justify-content: center;
  min-height: 42px;
  padding: 11px;
  position: relative;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
  width: 100%;
}

.google-btn.primary-google {
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px rgba(56, 189, 248, 0.18);
  color: #101827;
}

.google-btn:hover,
.google-btn:focus-visible {
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 22px 42px rgba(56, 189, 248, 0.22);
  outline: none;
  transform: translateY(-2px);
}

.google-mark {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  color: #2563eb;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

.login-flow-note {
  border-top: 1px solid rgba(190, 210, 255, 0.15);
  color: var(--soft);
  display: grid;
  gap: 5px;
  line-height: 1.58;
  margin-top: 16px;
  padding-top: 14px;
}

.login-flow-note strong {
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 950;
}

.login-flow-note span {
  color: var(--soft);
  font-size: 10.5px;
}

@keyframes particleDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(14px, -18px, 0);
  }
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
  }

  .brand-copy h1 {
    font-size: 34.5px;
  }

  .ai-visual img {
    height: min(28vh, 225px);
  }

  .auth-panel {
    padding: 28px 6%;
  }
}

@media (max-width: 940px) {
  body {
    overflow-y: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .login-shell::before {
    display: none;
  }

  .brand-panel {
    border-right: 0;
    height: auto;
    min-height: auto;
    padding: 22px 6% 26px;
  }

  .brand-copy {
    margin-top: 34px;
    padding: 36px 0 20px;
  }

  .brand-copy h1 {
    font-size: 31.5px;
    max-width: 650px;
  }

  .ai-visual {
    max-width: 720px;
  }

  .ai-visual img {
    height: 210px;
  }

  .auth-panel {
    height: auto;
    min-height: auto;
    padding: 24px 6% 32px;
  }
}

@media (max-width: 640px) {
  .login-topbar {
    align-items: center;
    gap: 12px;
  }

  .login-topbar,
  .brand-copy,
  .ai-visual,
  .auth-card {
    max-width: 334px;
    width: 100%;
  }

  .auth-panel {
    justify-content: flex-start;
  }

  .login-logo {
    font-size: 16.5px;
  }

  .login-home-button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 6px 10px;
  }

  .brand-copy {
    margin-top: 26px;
    padding-top: 26px;
    padding-bottom: 14px;
  }

  .eyebrow,
  .auth-kicker {
    font-size: 8.25px;
    line-height: 1.25;
    max-width: 100%;
    min-height: 25px;
    white-space: normal;
  }

  .brand-copy h1 {
    font-size: 24px;
  }

  .brand-copy p {
    font-size: 11.25px;
    line-height: 1.68;
    margin-top: 12px;
  }

  .trust-row {
    margin-top: 14px;
  }

  .trust-row span {
    font-size: 9px;
  }

  .ai-visual {
    display: none;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card h2 {
    font-size: 21.75px;
  }

  .google-btn {
    font-size: 10.5px;
  }
}

@media (max-width: 420px) {
  .brand-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .auth-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-copy h1 {
    font-size: 23.25px;
  }

  .ai-visual img {
    height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Light premium login: aligned with Porfoo dashboard workspace. */
:root {
  --bg: #f7fbff;
  --bg-deep: #eef5ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(71, 105, 159, 0.14);
  --line-strong: rgba(59, 130, 246, 0.28);
  --text: #101827;
  --muted: #526174;
  --soft: #6b7890;
  --cyan: #089bdc;
  --blue: #2f6eea;
  --violet: #6d5df6;
  --green: #0f9f72;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --danger-line: rgba(239, 68, 68, 0.22);
  --danger-text: #b91c1c;
  --success-bg: rgba(16, 185, 129, 0.09);
  --success-line: rgba(16, 185, 129, 0.24);
  --success-text: #047857;
  --shadow: 0 22px 70px rgba(30, 58, 138, 0.14);
}

body {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 68% 18%, rgba(202, 232, 255, 0.72), transparent 34%),
    linear-gradient(135deg, #fbfdff 0%, #f1f7ff 46%, #edf5ff 100%);
  color: var(--text);
}

body::before {
  background:
    linear-gradient(rgba(80, 118, 175, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 118, 175, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.38;
}

body::after {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.82), transparent 30%),
    radial-gradient(circle at 36% 78%, rgba(94, 178, 255, 0.2), transparent 32%),
    radial-gradient(circle at 78% 20%, rgba(160, 148, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(33, 150, 243, 0.14), transparent 30%);
  filter: blur(28px);
  opacity: 0.95;
}

.login-shell {
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.9), transparent 26%),
    radial-gradient(circle at 44% 62%, rgba(90, 169, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(108, 93, 246, 0.1), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 255, 0.92) 54%, rgba(235, 244, 255, 0.94));
}

.login-shell::before {
  background: linear-gradient(180deg, transparent, rgba(70, 112, 181, 0.22), transparent);
  opacity: 0.7;
}

.login-shell::after {
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.58), transparent 24%),
    radial-gradient(circle at 70% 70%, rgba(10, 132, 255, 0.1), transparent 30%);
  content: "";
  filter: blur(18px);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.brand-panel,
.auth-panel {
  position: relative;
  z-index: 1;
}

.brand-panel {
  border-right: 1px solid rgba(72, 102, 154, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(237, 246, 255, 0.28)),
    radial-gradient(circle at 18% 80%, rgba(47, 110, 234, 0.1), transparent 30%);
}

.brand-panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(202, 232, 255, 0.2) 48%, rgba(235, 230, 255, 0.18)),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  opacity: 0.72;
}

.brand-panel::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(125, 211, 252, 0.18) 42%, transparent 70%);
  filter: blur(22px);
  height: 520px;
  left: -190px;
  opacity: 0.86;
  top: 12%;
  width: 520px;
}

.ambient-field span {
  background: rgba(36, 142, 229, 0.58);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28);
  opacity: 0.22;
}

.login-logo {
  border-color: rgba(101, 131, 185, 0.18);
  box-shadow: 0 14px 34px rgba(30, 58, 138, 0.12);
}

.login-home-button {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(74, 109, 173, 0.16);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
  color: #20304c;
}

.login-home-button:hover,
.login-home-button:focus-visible {
  background: #ffffff;
  border-color: rgba(47, 110, 234, 0.34);
  color: #123b8f;
  box-shadow: 0 14px 28px rgba(47, 110, 234, 0.14);
}

.brand-copy {
  margin-top: clamp(40px, 6.4vh, 64px);
}

.eyebrow,
.auth-kicker {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(62, 102, 170, 0.14);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.07);
  color: #2d5fbf;
}

.brand-copy h1 {
  color: #111a2e;
  font-size: clamp(29px, 3vw, 36px);
  letter-spacing: 0;
  max-width: 650px;
}

.brand-copy p {
  color: #526174;
  font-size: 12px;
  line-height: 1.72;
  max-width: 640px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(62, 102, 170, 0.14);
  color: #33425c;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.06);
}

.ai-visual {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(230, 243, 255, 0.54));
  border: 1px solid rgba(71, 105, 159, 0.12);
  border-radius: 8px;
  box-shadow: 0 26px 60px rgba(30, 58, 138, 0.13);
  padding: 8px;
}

.ai-visual::before {
  background:
    linear-gradient(90deg, transparent, rgba(13, 148, 236, 0.2), transparent),
    linear-gradient(180deg, transparent, rgba(109, 93, 246, 0.08), transparent);
  opacity: 0.54;
}

.ai-visual img {
  border-color: rgba(62, 102, 170, 0.16);
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.13);
  filter: saturate(0.94) brightness(1.06);
  height: min(28vh, 242px);
}

.ai-visual figcaption {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(71, 105, 159, 0.14);
  box-shadow: 0 16px 30px rgba(30, 58, 138, 0.12);
}

.ai-visual figcaption span {
  color: #1572d6;
}

.ai-visual figcaption strong {
  color: #142038;
}

.auth-panel {
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.7), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(93, 169, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}

.auth-panel::before {
  background:
    linear-gradient(rgba(70, 112, 181, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 112, 181, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.34;
}

.auth-panel::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(83, 172, 255, 0.18) 44%, transparent 72%);
  filter: blur(26px);
  opacity: 0.72;
}

.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.93)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(72, 102, 154, 0.14);
  box-shadow: 0 28px 76px rgba(30, 58, 138, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  max-width: 410px;
}

.auth-card::before {
  background: linear-gradient(90deg, rgba(47, 110, 234, 0), rgba(47, 110, 234, 0.38), rgba(9, 155, 220, 0));
}

.auth-orb {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.96), rgba(137, 205, 255, 0.42) 20%, rgba(91, 92, 246, 0.14) 48%, transparent 70%);
  filter: blur(2px);
  opacity: 0.58;
}

.auth-card h2 {
  color: #111a2e;
  font-size: 23px;
  letter-spacing: 0;
}

.subtitle {
  color: #526174;
  font-size: 11px;
}

.alert {
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.06);
}

.google-btn.primary-google {
  background: linear-gradient(135deg, #ffffff, #f0f7ff);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 16px 32px rgba(47, 110, 234, 0.12);
  color: #111a2e;
}

.google-btn:hover,
.google-btn:focus-visible {
  border-color: rgba(47, 110, 234, 0.4);
  box-shadow: 0 20px 38px rgba(47, 110, 234, 0.16);
}

.google-mark {
  border-color: rgba(71, 105, 159, 0.18);
  box-shadow: 0 6px 14px rgba(30, 58, 138, 0.08);
}

.login-flow-note {
  border-top-color: rgba(72, 102, 154, 0.14);
  color: #64748b;
}

.login-flow-note strong {
  color: #17223a;
}

.login-flow-note span {
  color: #64748b;
}

@media (max-width: 1180px) {
  .brand-copy h1 {
    font-size: clamp(28px, 3.4vw, 33px);
  }

  .auth-card {
    max-width: 390px;
  }
}

@media (max-width: 940px) {
  .login-shell {
    background:
      radial-gradient(circle at 24% 10%, rgba(255, 255, 255, 0.92), transparent 30%),
      linear-gradient(180deg, #fbfdff 0%, #f1f7ff 100%);
  }

  .brand-panel {
    border-bottom: 1px solid rgba(72, 102, 154, 0.12);
    border-right: 0;
  }

  .brand-copy {
    margin-top: 30px;
    padding-top: 28px;
  }

  .auth-panel {
    background: rgba(255, 255, 255, 0.28);
  }
}

@media (max-width: 640px) {
  .brand-copy h1 {
    font-size: 25px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card h2 {
    font-size: 21px;
  }
}

/* Login future visual: give the new global-readiness image enough presence. */
.brand-copy h1 {
  max-width: 560px;
}

.brand-copy p {
  max-width: 610px;
}

.ai-visual {
  max-width: min(1028px, 100%);
}

.ai-visual img {
  height: clamp(320px, 33vh, 360px);
  object-fit: cover;
  object-position: center 28%;
}

@media (max-width: 1180px) {
  .ai-visual {
    max-width: 820px;
  }

  .ai-visual img {
    height: clamp(280px, 31vh, 330px);
    object-position: center 30%;
  }
}

@media (max-width: 940px) {
  .ai-visual img {
    height: auto;
    object-fit: contain;
    object-position: center;
  }
}

/* Login copy emphasis requested for the global-readiness message. */
.brand-copy > p:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.72;
  max-width: 740px;
}

.trust-row span {
  font-size: 14.5px;
  padding: 10px 14px;
}

@media (max-width: 1180px) {
  .brand-copy > p:not(.eyebrow) {
    font-size: 16px;
    max-width: 660px;
  }

  .trust-row span {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .brand-copy > p:not(.eyebrow) {
    font-size: 14px;
  }

  .trust-row span {
    font-size: 11.5px;
    padding: 8px 10px;
  }
}

/* Login final refinement: luminous intelligent workspace, scoped to the login page. */
body {
  background:
    radial-gradient(ellipse at 9% 14%, rgba(255, 255, 255, 0.96), transparent 34%),
    radial-gradient(ellipse at 33% 74%, rgba(186, 230, 253, 0.34), transparent 38%),
    radial-gradient(ellipse at 74% 12%, rgba(196, 181, 253, 0.22), transparent 42%),
    radial-gradient(ellipse at 88% 84%, rgba(96, 165, 250, 0.18), transparent 36%),
    linear-gradient(135deg, #fbfdff 0%, #f4f9ff 44%, #edf5ff 100%);
}

body::before {
  background:
    linear-gradient(rgba(79, 113, 169, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 113, 169, 0.028) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(ellipse at center, #000 0 52%, transparent 84%);
  opacity: 0.42;
}

body::after {
  animation: loginAmbientBreath 11s ease-in-out infinite;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.74), transparent 32%),
    radial-gradient(circle at 45% 72%, rgba(125, 211, 252, 0.22), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(167, 139, 250, 0.18), transparent 36%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.26), rgba(219, 234, 254, 0.12), rgba(245, 243, 255, 0.14));
  filter: blur(34px);
  opacity: 0.92;
}

.login-shell {
  background:
    radial-gradient(ellipse at 19% 16%, rgba(255, 255, 255, 0.86), transparent 34%),
    radial-gradient(ellipse at 50% 78%, rgba(125, 211, 252, 0.15), transparent 34%),
    radial-gradient(ellipse at 78% 28%, rgba(196, 181, 253, 0.16), transparent 42%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.82), rgba(242, 248, 255, 0.78) 54%, rgba(232, 242, 255, 0.9));
}

.login-shell::before {
  background:
    linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.16) 28%, rgba(255, 255, 255, 0.78) 50%, rgba(14, 165, 233, 0.12) 72%, transparent);
  filter: blur(14px);
  left: calc(100% - 44.2%);
  opacity: 0.68;
  width: 70px;
}

.login-shell::after {
  animation: loginMeshDrift 18s ease-in-out infinite;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 70% 70%, rgba(14, 165, 233, 0.12), transparent 32%),
    linear-gradient(104deg, transparent 0 20%, rgba(255, 255, 255, 0.22) 38%, rgba(219, 234, 254, 0.11) 58%, transparent 82%);
  filter: blur(22px);
  opacity: 0.84;
}

.brand-panel {
  background:
    radial-gradient(ellipse at 12% 22%, rgba(255, 255, 255, 0.72), transparent 34%),
    radial-gradient(ellipse at 72% 76%, rgba(186, 230, 253, 0.17), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(236, 246, 255, 0.22));
  border-right-color: rgba(84, 116, 170, 0.08);
}

.brand-panel::before {
  animation: loginSoftAurora 16s ease-in-out infinite;
  background:
    radial-gradient(ellipse at 24% 18%, rgba(255, 255, 255, 0.72), transparent 36%),
    radial-gradient(ellipse at 58% 62%, rgba(125, 211, 252, 0.12), transparent 42%),
    linear-gradient(118deg, transparent 0 22%, rgba(255, 255, 255, 0.28) 42%, rgba(199, 210, 254, 0.12) 62%, transparent 84%);
  opacity: 0.76;
}

.ambient-field span {
  animation-name: particleDrift, loginParticleGlow;
  animation-duration: 13s, 5.5s;
  animation-iteration-count: infinite, infinite;
  background: rgba(74, 144, 226, 0.42);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.32);
  height: 5px;
  opacity: 0.2;
  width: 5px;
}

.eyebrow,
.auth-kicker,
.login-home-button {
  backdrop-filter: blur(18px);
}

.brand-copy h1 {
  color: #101827;
  letter-spacing: 0;
  text-wrap: balance;
}

.brand-copy > p:not(.eyebrow) {
  color: #4f5f75;
  letter-spacing: 0;
  text-wrap: pretty;
}

.trust-row {
  gap: 11px;
}

.trust-row span {
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 255, 255, 0.96), transparent 44%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(236, 246, 255, 0.54));
  border: 1px solid rgba(79, 112, 171, 0.14);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  color: #283652;
  backdrop-filter: blur(18px);
}

.ai-visual {
  animation: loginImageFloat 8s ease-in-out infinite;
  background:
    radial-gradient(ellipse at 24% 8%, rgba(255, 255, 255, 0.94), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(231, 244, 255, 0.48));
  border: 1px solid rgba(97, 129, 186, 0.14);
  border-radius: 22px;
  box-shadow:
    0 30px 86px rgba(30, 58, 138, 0.18),
    0 12px 32px rgba(14, 165, 233, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  overflow: hidden;
  padding: 10px;
}

.ai-visual::before {
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(92deg, transparent, rgba(56, 189, 248, 0.28), rgba(196, 181, 253, 0.16), transparent);
  filter: blur(10px);
  opacity: 0.62;
}

.ai-visual::after {
  animation: loginImageShimmer 7s ease-in-out infinite;
  background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.42) 46%, transparent 68%);
  content: "";
  inset: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-40%);
  z-index: 2;
}

.ai-visual img {
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(30, 58, 138, 0.16);
  filter: saturate(1.02) brightness(1.04) contrast(0.98);
}

.ai-visual figcaption {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.92), transparent 44%),
    rgba(255, 255, 255, 0.84);
  border-color: rgba(84, 116, 170, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(30, 58, 138, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.auth-panel {
  background:
    radial-gradient(ellipse at 62% 30%, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(ellipse at 82% 74%, rgba(125, 211, 252, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(237, 246, 255, 0.08));
}

.auth-panel::before {
  mask-image: radial-gradient(ellipse at 52% 44%, #000 0 48%, transparent 84%);
  opacity: 0.22;
}

.auth-panel::after {
  animation: loginAmbientBreath 9s ease-in-out infinite reverse;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(59, 130, 246, 0.14) 42%, rgba(196, 181, 253, 0.08) 58%, transparent 74%);
  filter: blur(30px);
  opacity: 0.72;
}

.auth-card {
  animation: loginCardFloat 8.5s ease-in-out infinite;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.98), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 251, 255, 0.72));
  border: 1px solid rgba(87, 118, 176, 0.16);
  border-radius: 24px;
  box-shadow:
    0 36px 100px rgba(30, 58, 138, 0.18),
    0 14px 44px rgba(14, 165, 233, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  padding: 34px;
}

.auth-card::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.42), rgba(125, 211, 252, 0.26), transparent);
  left: 32px;
  right: 32px;
}

.auth-card:hover {
  box-shadow:
    0 42px 110px rgba(30, 58, 138, 0.2),
    0 18px 48px rgba(14, 165, 233, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.auth-orb {
  animation: loginGlowPulse 6s ease-in-out infinite;
  opacity: 0.68;
}

.auth-kicker {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.96), transparent 40%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(231, 244, 255, 0.64));
  color: #2d5fbf;
}

.auth-card h2 {
  font-size: 25px;
}

.subtitle {
  font-size: 12px;
  line-height: 1.75;
}

.google-btn {
  border-radius: 16px;
  isolation: isolate;
  min-height: 52px;
  overflow: hidden;
}

.google-btn span {
  position: relative;
  z-index: 2;
}

.google-btn::before,
.google-btn::after {
  border-radius: inherit;
  content: "";
  pointer-events: none;
  position: absolute;
}

.google-btn::before {
  animation: loginButtonBorder 4.8s linear infinite;
  background: conic-gradient(from 0deg, rgba(59, 130, 246, 0.08), rgba(125, 211, 252, 0.58), rgba(167, 139, 250, 0.3), rgba(59, 130, 246, 0.08));
  inset: 0;
  opacity: 0.72;
  padding: 1px;
  -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;
  z-index: 0;
}

.google-btn::after {
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.7) 46%, transparent 72%);
  inset: 1px;
  opacity: 0;
  transform: translateX(-42%);
  transition: opacity 0.28s ease, transform 0.6s ease;
  z-index: 1;
}

.google-btn.primary-google {
  background:
    linear-gradient(#f9fcff, #f9fcff) padding-box,
    linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(125, 211, 252, 0.16), rgba(167, 139, 250, 0.18)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 38px rgba(47, 110, 234, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.google-btn:hover,
.google-btn:focus-visible {
  box-shadow: 0 24px 48px rgba(47, 110, 234, 0.2), 0 0 0 5px rgba(96, 165, 250, 0.08);
  transform: translateY(-2px);
}

.google-btn:hover::after,
.google-btn:focus-visible::after {
  opacity: 0.45;
  transform: translateX(36%);
}

.login-flow-note {
  border-top-color: rgba(87, 118, 176, 0.13);
}

@keyframes loginAmbientBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }

  50% {
    opacity: 0.94;
    transform: scale(1.025);
  }
}

@keyframes loginMeshDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(14px, -10px, 0);
  }
}

@keyframes loginSoftAurora {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(18px);
  }
}

@keyframes loginParticleGlow {
  0%,
  100% {
    opacity: 0.14;
  }

  50% {
    opacity: 0.32;
  }
}

@keyframes loginImageFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes loginImageShimmer {
  0%,
  52% {
    opacity: 0;
    transform: translateX(-46%);
  }

  64% {
    opacity: 0.36;
  }

  82%,
  100% {
    opacity: 0;
    transform: translateX(46%);
  }
}

@keyframes loginCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes loginGlowPulse {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(1);
  }

  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

@keyframes loginButtonBorder {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 940px) {
  .login-shell::before {
    display: none;
  }

  .brand-panel,
  .auth-panel {
    background:
      radial-gradient(ellipse at 18% 14%, rgba(255, 255, 255, 0.86), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(236, 246, 255, 0.34));
  }

  .ai-visual,
  .auth-card {
    animation: none;
  }
}

@media (max-width: 640px) {
  .auth-card {
    border-radius: 20px;
    padding: 24px;
  }

  .google-btn {
    min-height: 48px;
  }
}

/* Final login scale refinement: keep first-viewport hierarchy calmer. */
.brand-copy h1 {
  font-size: clamp(24px, 2.35vw, 30px);
  line-height: 1.12;
  max-width: 500px;
}

@media (max-width: 940px) {
  .brand-copy h1 {
    font-size: clamp(23px, 5.2vw, 28px);
    max-width: 560px;
  }
}

/* Pull the left login story upward so the image caption stays visible. */
.brand-panel {
  padding-top: clamp(12px, 1.6vh, 18px);
  padding-bottom: clamp(10px, 1.4vh, 16px);
}

.brand-copy {
  margin-top: clamp(18px, 3vh, 32px);
}

.brand-copy p {
  margin-top: 10px;
}

.brand-copy > p:not(.eyebrow) {
  line-height: 1.58;
}

.trust-row {
  margin-top: 10px;
}

.ai-visual {
  margin-top: 8px;
}

.ai-visual img {
  height: clamp(224px, 25vh, 270px);
}

.ai-visual figcaption {
  margin: 10px 16px 0;
  padding: 10px 12px;
}

@media (max-width: 1180px) {
  .ai-visual img {
    height: clamp(210px, 24vh, 250px);
  }
}

/* Login brand story: transparent identity and an uncropped 3:2 visual. */
.brand-panel {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.login-logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 270px;
  padding: 0;
  width: min(100%, 270px);
}

.login-logo .msi-logo-img {
  height: auto !important;
  width: 100% !important;
}

.ai-visual img {
  aspect-ratio: 466 / 211;
  height: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1180px) {
  .ai-visual img {
    height: auto;
  }
}

@media (max-width: 640px) {
  .login-logo {
    max-width: 220px;
    width: min(100%, 220px);
  }
}

/* Login global-core polish: make the entry feel worldwide without overpowering auth. */
.brand-copy .eyebrow {
  color: #2563eb;
  font-size: 10.25px;
  font-weight: 820;
  letter-spacing: 0;
}

.trust-row {
  gap: 9px;
}

.trust-row span {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 255, 0.72));
  border-color: rgba(47, 110, 234, 0.18);
  color: #27406c;
}

.login-global-proof {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.login-global-proof span {
  align-items: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.98), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 246, 255, 0.64));
  border: 1px solid rgba(87, 118, 176, 0.16);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(30, 58, 138, 0.08);
  color: #526174;
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
}

.login-global-proof strong {
  color: #1168e8;
  font-size: 22px;
  font-weight: 920;
  line-height: 1;
}

.login-global-map-visual {
  max-width: min(1028px, 100%);
}

.login-global-map-visual img {
  aspect-ratio: 1672 / 859;
  background: #ffffff;
  height: auto;
  max-height: min(37vh, 430px);
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  width: 100%;
}

.login-global-map-visual figcaption {
  margin-top: 10px;
}

.auth-panel::before {
  background:
    url("/assets/images/porfoo-global-core-150-map-home.png?v=20260919-global-core-map-home-v1") center 45% / min(78%, 620px) auto no-repeat,
    linear-gradient(rgba(70, 112, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 112, 181, 0.03) 1px, transparent 1px);
  background-size: min(78%, 620px) auto, 48px 48px, 48px 48px;
  filter: saturate(0.78) brightness(1.08);
  mask-image: radial-gradient(ellipse at 52% 46%, #000 0 48%, transparent 84%);
  opacity: 0.13;
}

@media (max-width: 1180px) {
  .login-global-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }

  .login-global-map-visual img {
    max-height: min(34vh, 360px);
  }
}

@media (max-width: 940px) {
  .login-global-proof {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 720px;
  }

.login-global-map-visual img {
  max-height: none;
  }
}

/* Login proportion pass: smaller brand anchor, larger global map. */
.login-logo {
  max-width: 210px;
  width: min(100%, 210px);
}

.brand-panel {
  padding-top: clamp(10px, 1.3vh, 14px);
}

.brand-copy {
  margin-top: clamp(14px, 2.2vh, 24px);
}

.login-global-map-visual {
  margin-top: 16px;
  max-width: min(940px, 100%);
}

.login-global-map-visual img {
  max-height: min(35vh, 390px);
}

@media (max-width: 1180px) {
  .login-logo {
    max-width: 190px;
    width: min(100%, 190px);
  }

  .login-global-map-visual img {
    max-height: min(32vh, 340px);
  }
}

@media (max-width: 640px) {
  .login-logo {
    max-width: 178px;
    width: min(100%, 178px);
  }
}

/* Login final visual balance. */
.login-logo {
  max-width: 185px;
  width: min(100%, 185px);
}

.brand-copy {
  margin-top: clamp(8px, 1.55vh, 18px);
}

.brand-copy h1 {
  font-size: clamp(27px, 2.75vw, 34px);
  line-height: 1.1;
}

.login-global-map-visual {
  margin-top: 10px;
  transform: translateY(-14px);
}

@media (max-width: 1180px) {
  .login-logo {
    max-width: 174px;
    width: min(100%, 174px);
  }

  .brand-copy h1 {
    font-size: clamp(26px, 3.15vw, 32px);
  }
}

@media (max-width: 640px) {
  .login-logo {
    max-width: 164px;
    width: min(100%, 164px);
  }

  .login-global-map-visual {
    transform: none;
  }
}

@media (max-width: 640px) {
  .login-global-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Login cleanup: keep the global proof readable and calm. */
.brand-copy > p:not(.eyebrow) {
  font-size: 15.5px;
  line-height: 1.66;
  max-width: 720px;
}

.trust-row {
  margin-top: 14px;
}

.trust-row span {
  font-size: 13px;
  padding: 9px 13px;
}

.login-global-proof {
  display: none;
}

.login-global-map-visual {
  margin-top: 18px;
  max-width: min(760px, 100%);
  padding: 8px;
}

.login-global-map-visual::after,
.login-global-map-visual figcaption {
  display: none;
}

.login-global-map-visual img {
  height: auto;
  max-height: min(28vh, 300px);
  object-fit: contain;
  object-position: center;
}

@media (max-width: 1180px) {
  .brand-copy > p:not(.eyebrow) {
    font-size: 14.5px;
  }

  .login-global-map-visual img {
    max-height: min(26vh, 270px);
  }
}

@media (max-width: 940px) {
  .login-global-map-visual img {
    max-height: none;
  }
}

/* Final login proportions: keep Porfoo as an anchor and the map as the global proof. */
.login-logo {
  max-width: 210px;
  width: min(100%, 210px);
}

.login-global-map-visual {
  margin-top: 16px;
  max-width: min(940px, 100%);
}

.login-global-map-visual img {
  max-height: min(35vh, 390px);
}

@media (max-width: 1180px) {
  .login-logo {
    max-width: 190px;
    width: min(100%, 190px);
  }

  .login-global-map-visual img {
    max-height: min(32vh, 340px);
  }
}

@media (max-width: 940px) {
  .login-global-map-visual img {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .login-logo {
    max-width: 178px;
    width: min(100%, 178px);
  }
}

/* Reduce only the login brand image while preserving the surrounding layout. */
.login-shell .login-logo .msi-logo-img {
  transform: scale(0.75);
  transform-origin: left center;
}

/* Mobile login: logo, headline and the existing authentication card only. */
@media (max-width: 940px) {
  body { height: auto; min-height: 100svh; overflow-y: auto; }
  .login-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: auto;
    min-height: 100svh;
    padding: 28px 20px;
  }
  .login-shell::before,
  .login-shell::after,
  .brand-panel::before,
  .brand-panel::after,
  .auth-panel::before,
  .auth-panel::after,
  .ambient-field,
  .login-home-button,
  .brand-copy > :not(h1),
  .login-global-map-visual { display: none; }
  .brand-panel,
  .auth-panel {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .login-topbar { justify-content: center; max-width: none; width: 100%; }
  .login-logo { width: 178px; max-width: 100%; min-width: 0; flex: 0 0 auto; }
  .login-shell .login-logo .msi-logo-img { transform: none; }
  .brand-copy { width: 100%; max-width: none; margin: 24px 0 0; padding: 0; }
  .brand-copy h1 { margin: 0; font-size: 24px; line-height: 1.3; text-align: center; }
  .auth-panel { justify-content: center; }
  .auth-card { width: 100%; max-width: none; margin: 0; padding: 24px; }
}

/* Blend the original white-backed logo into the mobile login background. */
@media (max-width: 940px) {
  .login-shell { isolation: auto; }
  .login-shell .brand-panel { mix-blend-mode: multiply; }
  .login-shell .login-logo {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}
