.login-page {
  --login-blue: #087cff;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 688px) minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 50px 40px 76px;
  overflow-x: hidden;
  color: #f4f7ff;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: #031225;
}

.login-page, .login-page * { box-sizing: border-box; }
.login-page button, .login-page input { font: inherit; }
.login-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.login-page .background, .login-page .background-overlay { position: absolute; inset: 0; }
.login-page .background {
  z-index: -2;
  background: url("../images/marh-login-network.jpg") center / cover no-repeat, #031225;
}
.login-page .background-overlay {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,14,29,.64), rgba(2,14,29,.4) 50%, rgba(2,14,29,.64)),
    linear-gradient(0deg, rgba(2,14,29,.3), rgba(2,14,29,.14) 50%, rgba(2,14,29,.34));
}
.login-page .topbar, .login-page .left-content, .login-page .right-message, .login-page .footer { position: absolute; }
.login-page .topbar {
  z-index: 2;
  top: 20px;
  left: 48px;
  right: 48px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.login-page .brand { display: flex; align-items: center; gap: 15px; color: #b9d8ff; }
.login-page .brand-symbol { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.login-page .brand-symbol svg { width: 46px; height: 46px; }
.login-page .brand-name { font-size: 24px; font-weight: 600; letter-spacing: -.7px; }
.login-page .brand-divider { width: 1px; height: 30px; margin: 0 5px 0 2px; background: rgba(190,217,255,.65); }
.login-page .brand-tagline { color: #9dbce5; font-size: 14px; }
.login-page .language-selector { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; }
.login-page .globe-icon { color: #d0e6ff; font-size: 25px; line-height: 1; }
.login-page .chevron { margin-left: 3px; font-size: 21px; }
.login-page .left-content {
  left: max(40px, calc((100vw - 1320px) / 2));
  top: 50%;
  width: min(290px, calc((100vw - 760px) / 2));
  transform: translateY(-50%);
}
.login-page .hero-title { display: flex; flex-direction: column; color: #d8e8ff; font-size: clamp(2.4rem, 3.2vw, 2.9rem); font-weight: 700; line-height: 1.14; letter-spacing: -1.8px; }
.login-page .blue { color: var(--login-blue); }
.login-page .hero-line, .login-page .small-line, .login-page .message-line { height: 3px; background: var(--login-blue); }
.login-page .hero-line { width: 52px; margin: 22px 0 30px; }
.login-page .feature { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.login-page .feature-icon { width: 54px; height: 54px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(42,149,255,.48); border-radius: 14px; background: linear-gradient(145deg, rgba(0,114,255,.28), rgba(6,64,126,.62)); color: #e2f0ff; box-shadow: inset 0 0 15px rgba(0,122,255,.08); }
.login-page .feature-icon svg { width: 32px; height: 32px; }
.login-page .feature-text { display: flex; flex-direction: column; gap: 4px; }
.login-page .feature-text strong { font-size: 15px; font-weight: 600; }
.login-page .feature-text span { color: #a4c1e5; font-size: 13px; }
.login-page .left-bottom { display: flex; flex-direction: column; gap: 7px; margin-top: 48px; }
.login-page .small-line { width: 52px; margin-bottom: 8px; }
.login-page .left-bottom strong { font-size: 16px; font-weight: 500; }
.login-page .left-bottom span { color: #a7c1e5; font-size: 13px; }
.login-page .right-message { top: 15%; right: max(36px, calc((100vw - 1320px) / 2)); width: 220px; color: #9ec6f5; }
.login-page .script-title, .login-page .script-text { font-family: "Segoe Print", "Bradley Hand", cursive; font-style: italic; }
.login-page .script-title { margin-bottom: -2px; font-size: 34px; line-height: 1; }
.login-page .script-text { font-size: 17px; line-height: 1.5; transform: rotate(-2deg); }
.login-page .message-line { width: 49px; margin-top: 15px; }

.login-page .login-card {
  position: relative;
  grid-column: 2;
  justify-self: center;
  width: 100%;
  border: 1px solid rgba(69,174,255,.94);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(9,33,63,.96), rgba(3,21,43,.94));
  box-shadow: 0 0 2px rgba(74,180,255,.9), 0 0 25px rgba(0,129,255,.26), inset 0 0 45px rgba(0,110,255,.045);
  backdrop-filter: blur(15px);
}
.login-page .login-card::before { position: absolute; top: -2px; left: 105px; width: min(310px, calc(100% - 140px)); height: 4px; border-radius: 50%; background: #2da1ff; content: ""; filter: blur(3px); }
.login-page .login-content { padding: 39px 68px 30px; }
.login-page .marh-logo { display: flex; flex-direction: column; align-items: center; }
.login-page .marh-cart { width: 105px; height: 80px; color: var(--login-blue); }
.login-page .marh-cart svg { width: 100%; height: 100%; }
.login-page .marh-name { margin-top: -4px; font-size: 43px; font-weight: 700; line-height: 1; letter-spacing: -1.8px; }
.login-page .marh-company { margin-top: 7px; color: #a9c7ed; font-size: 21px; line-height: 1.2; }
.login-page .login-title { margin: 23px 0 0; text-align: center; font-size: 25px; font-weight: 600; }
.login-page .login-subtitle { margin: 5px 0 0; color: #9eb9de; font-size: 17px; line-height: 1.5; text-align: center; }
.login-page .login-form { margin-top: 24px; }
.login-page .input-group { position: relative; width: 100%; min-height: 0; margin-bottom: 16px; }
.login-page .input-group > .login-label, .login-page .company-group > .company-label { display: block; margin: 0 0 6px 2px; color: #dce8f8; font-size: 14px; font-weight: 600; line-height: 1.4; }
.login-page .input-group > input { width: 100%; height: 62px; padding: 0 58px 0 63px; border: 1px solid rgba(145,190,238,.75); border-radius: 11px; outline: none; background: rgba(8,32,62,.65); color: #f4f8ff; font-size: 17px; transition: border .2s, box-shadow .2s, background .2s; }
.login-page .input-group > input::placeholder { color: #a5bcd9; opacity: 1; }
.login-page .input-group > input:focus { border-color: #2595ff; background: rgba(7,38,76,.92); box-shadow: 0 0 0 2px rgba(0,130,255,.1), 0 0 15px rgba(0,122,255,.08); }
.login-page .company-group { display: block; min-height: 0; padding: 0; border: 0; background: transparent; }
.login-page .company-group > input { height: 62px; min-width: 0; padding: 0 16px; border: 1px solid rgba(145,190,238,.75); border-radius: 11px; outline: none; background: rgba(8,32,62,.65); color: #f4f8ff; font-size: 17px; }
.login-page .company-group > input:focus { border-color: #2595ff; box-shadow: 0 0 0 2px rgba(0,130,255,.18); }
.login-page .company-hint { display: block; margin: 7px 2px 0; color: #b5c8e1; font-size: 12px; line-height: 1.45; }
.login-page .input-icon { position: absolute; top: 56px; left: 19px; width: 23px; height: 23px; color: #d9e8fb; pointer-events: none; transform: translateY(-50%); }
.login-page .input-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page .password-toggle { position: absolute; top: 56px; right: 14px; width: 34px; height: 34px; padding: 4px; border: 0; background: transparent; color: #b7cce6; cursor: pointer; transform: translateY(-50%); }
.login-page .password-toggle[hidden] { display: none; }
.login-page .password-toggle svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-page .form-options { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; font-size: 15px; }
.login-page .remember { position: relative; display: flex; align-items: center; gap: 12px; color: #dce8f8; cursor: pointer; }
.login-page .remember-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login-page .custom-checkbox { position: relative; width: 25px; height: 25px; flex: 0 0 auto; border: 2px solid #a9c8ed; border-radius: 4px; background: rgba(6,30,60,.5); }
.login-page .remember-input:checked + .custom-checkbox::after { position: absolute; top: 2px; left: 7px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }
.login-page .remember-input:focus-visible + .custom-checkbox { outline: 2px solid #9bd1ff; outline-offset: 3px; }
.login-page .remember-status { min-height: 0; margin: -13px 0 12px; color: #aac3e3; font-size: 12px; }
.login-page .remember-status:empty { display: none; }
.login-page .forgot-link { color: #0094ff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.login-page .forgot-link:hover { text-decoration: underline; }
.login-page .recovery-card { grid-column: 2; }
.login-page .recovery-message { margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(93,169,255,.48); border-radius: 8px; background: rgba(8,55,102,.55); color: #d9eaff; font-size: 14px; line-height: 1.5; }
.login-page .recovery-return { display: inline-block; margin-top: 16px; }
.login-page .recovery-help { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(129,165,210,.3); border-radius: 10px; background: rgba(6,30,60,.45); }
.login-page .recovery-help h2 { margin: 0 0 6px; color: #e6f1ff; font-size: 15px; font-weight: 650; }
.login-page .recovery-help p { margin: 6px 0 0; color: #b9cde6; font-size: 13.5px; line-height: 1.55; }
.login-page .recovery-help strong { color: #dbe9fb; }
.login-page .recovery-help a { color: #6cb8ff; text-underline-offset: 3px; }
.login-page .login-button { display: flex; align-items: center; justify-content: center; gap: 21px; width: 100%; min-height: 69px; border: 1px solid #43a6ff; border-radius: 12px; background: linear-gradient(100deg, #0876f5, #086cff); color: #fff; box-shadow: 0 5px 18px rgba(0,112,255,.26), inset 0 1px 0 rgba(255,255,255,.15); cursor: pointer; font-size: 22px; font-weight: 600; transition: transform .15s, filter .15s; }
.login-page .login-button:hover { filter: brightness(1.08); }
.login-page .login-button:active { transform: translateY(1px); }
.login-page .login-button:focus-visible, .login-page .password-toggle:focus-visible { outline: 2px solid #9bd1ff; outline-offset: 3px; }
.login-page .arrow { font-size: 38px; font-weight: 300; line-height: 1; }
.login-page .submit-status { min-height: 0; margin: 0; color: #aac3e3; font-size: 13px; text-align: center; }
.login-page .alert { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #ff909077; border-radius: 8px; background: #711e2850; color: #ffd1d1; font-size: 13px; }
.login-page .alert ul { margin: 4px 0 0 18px; }
.login-page .field-error { position: absolute; top: calc(100% + 1px); left: 4px; color: #ffb4b4; font-size: 12px; }
.login-page .field-error:empty { display: none; }
.login-page .input-group .field-error { position: static; display: block; margin: 6px 2px 0; }
.login-page .input-group .field-error:empty { display: none; }
.login-page .footer { z-index: 2; right: 40px; bottom: 20px; left: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #a7c2e5; font-size: 12px; }
.login-page .footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; }
.login-page .footer-links a, .public-info-related a, .public-info-back { color: #9fc9fa; text-underline-offset: 4px; }
.login-page .footer-links a:hover, .public-info-related a:hover, .public-info-back:hover { color: #fff; }

.public-info-page { min-height: 100dvh; padding: clamp(16px, 4vw, 48px); color: #edf5ff; background: radial-gradient(ellipse at 50% 0, #102b4d 0, #091b34 52%, #061326 100%); }
.public-info-card { width: min(880px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid #38aaff66; border-radius: 18px; background: linear-gradient(150deg, #0b2039, #08182e 72%, #091c33); box-shadow: 0 24px 72px #02091670; }
.public-info-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px clamp(20px, 4vw, 40px); border-bottom: 1px solid #81a5d233; }
.public-info-brand { color: #f0f6ff; font-size: 1.1rem; font-weight: 750; letter-spacing: -.03em; text-decoration: none; }
.public-info-brand span { color: #1682ff; }
.public-info-content { padding: clamp(22px, 5vw, 48px); }
.public-info-content .eyebrow { margin-bottom: 10px; color: #78b8ff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.public-info-content h1 { margin-bottom: 24px; color: #f0f6ff; font-size: clamp(2rem, 5vw, 2.7rem); }
.public-info-content h2 { margin: 28px 0 8px; color: #dbe9fb; font-size: 1.12rem; letter-spacing: -.02em; }
.public-info-content p, .public-info-content li { color: #c0d1e7; font-size: .95rem; line-height: 1.75; }
.public-info-content ul { padding-left: 22px; }
.public-info-notice { margin: 0 0 28px; padding: 16px 18px; border: 1px solid #e3a84388; border-radius: 10px; background: #76511f2e; color: #ffe2a6; }
.public-info-notice strong { color: #ffe2a6; }
.public-info-notice p { margin: 6px 0 0; color: #ecd6ae; font-size: .88rem; }
.public-info-source { margin-top: 28px; padding-top: 16px; border-top: 1px solid #81a5d233; font-size: .82rem !important; }
.public-info-related { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #81a5d233; }
.public-support-card { max-width: 760px; }
.public-support-action { margin-top: 24px; padding: 20px; border: 1px solid #81a5d233; border-radius: 12px; background: #10233b; }
.public-support-action h2 { margin-top: 0; }
.public-support-action p { margin-bottom: 16px; }
.public-support-action .button { width: fit-content; }

@media (max-width: 1250px) {
  .login-page .left-content { left: 30px; width: min(260px, calc((100vw - 720px) / 2)); }
  .login-page .right-message { right: 24px; width: 190px; }
  .login-page .login-card { width: min(650px, 100%); }
  .login-page .login-content { padding-right: 48px; padding-left: 48px; }
}

@media (max-width: 1100px) {
  .login-page { grid-template-columns: minmax(0, 1fr); padding: 96px 20px 82px; }
  .login-page .left-content, .login-page .right-message { display: none; }
  .login-page .login-card { grid-column: 1; }
  .login-page .topbar { top: 16px; right: 20px; left: 20px; }
  .login-page .brand-divider, .login-page .brand-tagline { display: none; }
  .login-page .footer { right: 20px; left: 20px; }
}

@media (max-width: 600px) {
  .login-page { padding: 82px 12px 72px; }
  .login-page .topbar { top: 12px; right: 14px; left: 14px; min-height: 42px; }
  .login-page .brand { gap: 8px; }
  .login-page .brand-symbol, .login-page .brand-symbol svg { width: 36px; height: 36px; }
  .login-page .brand-name { font-size: 20px; }
  .login-page .login-content { padding: 25px 22px 22px; }
  .login-page .marh-cart { width: 76px; height: 54px; }
  .login-page .marh-name { font-size: 33px; }
  .login-page .marh-company { font-size: 16px; }
  .login-page .login-title { margin-top: 13px; font-size: 21px; }
  .login-page .login-subtitle { font-size: 14px; }
  .login-page .login-form { margin-top: 16px; }
  .login-page .form-options { flex-wrap: wrap; font-size: 12px; }
  .login-page .login-button { min-height: 54px; font-size: 18px; }
  .login-page .footer { justify-content: center; text-align: center; }
  .login-page .footer-links { justify-content: center; gap: 8px 16px; }
}

@media (max-height: 850px) {
  .login-page { padding-top: 78px; padding-bottom: 64px; }
  .login-page .login-content { padding-top: 22px; padding-bottom: 20px; }
  .login-page .marh-cart { height: 54px; }
  .login-page .login-title { margin-top: 10px; }
  .login-page .login-form { margin-top: 14px; }
  .login-page .input-group { min-height: 0; margin-bottom: 12px; }
  .login-page .input-group > input { height: 50px; }
  .login-page .company-group { min-height: 0; }
  .login-page .company-group > input { height: 50px; }
  .login-page .input-icon, .login-page .password-toggle { top: 51px; }
  .login-page .login-button { min-height: 54px; }
}

@media (max-width: 380px) {
  .login-page { padding-right: 9px; padding-left: 9px; }
  .login-page .login-content { padding-right: 16px; padding-left: 16px; }
  .login-page .brand-name { font-size: 18px; }
  .login-page .form-options { font-size: 11px; }
}
/* Two-step verification */
.login-page .two-factor-steps { margin: 14px 0 0; padding-left: 20px; color: #d9eaff; font-size: 14px; line-height: 1.6; }
.login-page .two-factor-qr { width: 210px; height: 210px; margin: 16px auto 8px; padding: 6px; border-radius: 10px; background: #fff; }
.login-page .two-factor-qr svg { display: block; width: 100%; height: 100%; }
.login-page .two-factor-manual { margin: 6px 0 4px; color: #d9eaff; font-size: 13px; }
.login-page .two-factor-manual summary { cursor: pointer; color: #8cc4ff; }
.login-page .two-factor-key { padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.35); font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }
.login-page .backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 16px 0; padding: 14px 14px 14px 36px; border-radius: 10px; background: rgba(0,0,0,.35); color: #fff; }
.login-page .backup-codes code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: .05em; }
.login-page .two-factor-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.login-page .two-factor-actions .login-button { flex: 1 1 160px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.login-page .login-button-secondary { background: transparent; border: 1px solid rgba(140,196,255,.6); }
.login-page .two-factor-help { margin-top: 14px; font-size: 12px; }
.login-page .two-factor-card .input-group input { padding-left: 16px; letter-spacing: .08em; }
@media print {
  .login-page .background, .login-page .background-overlay, .login-page .two-factor-actions, .login-page .marh-logo { display: none !important; }
  .login-page, .login-page .login-card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .login-page .backup-codes { background: #fff; color: #000; border: 1px solid #000; }
}
