/* Reference-aligned enterprise login.
   Desktop uses a true 55/45 split; tablet and mobile use an independent
   stacked composition so the field experience is never a shrunken desktop. */
@media screen {
  body[data-login-portal="technician"] {
    --login-accent: #126bff;
    --login-accent-secondary: #20b8ed;
    --login-accent-soft: rgba(18, 107, 255, .14);
  }

  body[data-login-portal="management"] {
    --login-accent: #6d4cf4;
    --login-accent-secondary: #1479ff;
    --login-accent-soft: rgba(109, 76, 244, .14);
  }

  .login-view,
  html[data-theme="light"] .login-view {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 55%) minmax(0, 45%);
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    background:
      radial-gradient(circle at 85% 8%, color-mix(in srgb, var(--login-accent) 15%, transparent), transparent 30%),
      linear-gradient(145deg, #020d20, #03172d 58%, #020a19);
  }

  .login-visual,
  html[data-theme="light"] .login-visual {
    position: relative;
    inset: auto;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(34px, 4.2vw, 68px) clamp(38px, 4.3vw, 74px) 150px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background-color: #03172d;
    background-image: url("images/login-network-hero.png");
    background-position: 20% center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: none;
  }

  .login-visual-overlay,
  html[data-theme="light"] .login-visual-overlay {
    z-index: 0;
    background:
      radial-gradient(circle at 12% 25%, color-mix(in srgb, var(--login-accent) 13%, transparent), transparent 35%),
      linear-gradient(90deg, rgba(2, 13, 32, .22) 0%, rgba(2, 13, 32, .36) 55%, rgba(2, 13, 32, .78) 100%),
      linear-gradient(180deg, rgba(2, 13, 32, .38) 0%, rgba(2, 13, 32, .03) 46%, rgba(2, 13, 32, .38) 100%);
  }

  .login-brand,
  html[data-theme="light"] .login-brand.brand-light {
    position: relative;
    inset: auto;
    z-index: 2;
    width: max-content;
    max-width: 100%;
    gap: 15px;
    padding: 0;
    overflow: visible;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .login-brand::after { display: none; }
  .login-brand .brand-logo,
  html[data-theme="light"] .login-brand .brand-logo { width: 62px; height: 62px; filter: drop-shadow(0 9px 19px rgba(20, 121, 255, .28)); }
  .login-brand strong,
  html[data-theme="light"] .login-brand.brand-light strong { color: #ffffff; font-size: clamp(25px, 2.25vw, 36px); font-style: italic; font-weight: 800; letter-spacing: -.045em; }
  .login-brand small,
  html[data-theme="light"] .login-brand.brand-light small { margin-top: 3px; color: #b8c7db; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

  .hero-copy,
  html[data-theme="light"] .hero-copy {
    position: relative;
    inset: auto;
    z-index: 2;
    width: min(100%, 650px);
    max-width: none;
    margin-top: clamp(28px, 4vh, 44px);
    padding: 0;
    overflow: visible;
    color: #ffffff;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-copy::before,
  .hero-copy::after { display: none; }
  .mobile-hero-portal,
  .mobile-hero-title,
  .mobile-hero-subtitle { display: none; }

  .hero-kicker {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 8px 16px;
    color: #e6f1ff;
    border: 1px solid color-mix(in srgb, var(--login-accent) 72%, #7fcfff);
    border-radius: 999px;
    background: rgba(4, 22, 48, .62);
    box-shadow: 0 0 22px color-mix(in srgb, var(--login-accent) 16%, transparent), inset 0 1px rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .06em;
  }
  .hero-kicker > svg { width: 17px; height: 17px; color: #a9d2ff; }

  .hero-copy .desktop-hero-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(43px, 4.15vw, 66px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
  }
  .desktop-hero-title span,
  .desktop-hero-title em { display: block; }
  .desktop-hero-title em { margin-top: 8px; color: var(--login-accent); font-style: normal; }
  body[data-login-portal="technician"] .desktop-hero-title em { background: linear-gradient(105deg, #1479ff, #20b8ed); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero-copy .desktop-hero-text,
  html[data-theme="light"] .hero-copy .desktop-hero-text {
    max-width: 610px;
    margin: 18px 0 0;
    color: #c8d4e3;
    font-size: clamp(14px, 1.22vw, 18px);
    font-weight: 450;
    line-height: 1.55;
  }

  .login-feature-grid {
    position: relative;
    inset: auto;
    z-index: 2;
    width: min(100%, 680px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(25px, 3.2vh, 36px);
  }
  .login-feature-grid article,
  html[data-theme="light"] .login-feature-grid article {
    min-width: 0;
    min-height: 154px;
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 17px;
    color: #ffffff;
    border: 1px solid rgba(125, 167, 223, .27);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(7, 30, 62, .76), rgba(3, 18, 42, .64));
    box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 14px 32px rgba(0, 6, 20, .15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
  }
  .login-feature-grid article:hover { border-color: color-mix(in srgb, var(--login-accent) 48%, rgba(125, 167, 223, .28)); background: linear-gradient(145deg, rgba(9, 38, 78, .82), rgba(4, 23, 52, .7)); transform: translateY(-2px); }
  .login-feature-grid article > svg,
  html[data-theme="light"] .login-feature-grid article > svg {
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    margin-bottom: 15px;
    padding: 10px;
    color: #e9f5ff;
    border: 1px solid rgba(79, 151, 255, .52);
    border-radius: 12px;
    background: linear-gradient(145deg, #126bff, #164ab6);
    box-shadow: 0 8px 18px rgba(18, 107, 255, .3), inset 0 1px rgba(255, 255, 255, .22);
  }
  .login-feature-grid article { flex-direction: column; }
  .login-feature-grid article span { min-width: 0; }
  .login-feature-grid b,
  html[data-theme="light"] .login-feature-grid b { display: block; color: #ffffff; font-size: 13px; font-weight: 720; }
  .login-feature-grid small,
  html[data-theme="light"] .login-feature-grid small { display: block; margin-top: 8px; color: #bdcadd; font-size: 11px; line-height: 1.45; }
  .login-feature-grid em { display: none; }

  .login-panel {
    position: relative;
    z-index: 3;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(24px, 2.5vw, 48px);
    background: transparent;
  }

  .login-card,
  html[data-theme="light"] .login-card,
  html[data-theme="light"] body[data-login-portal="management"] .login-card {
    --text-primary: #0b1b34;
    --text-secondary: #60728d;
    --text-muted: #73839a;
    --surface-secondary: #f7faff;
    --surface-tertiary: #f1f7ff;
    --border-primary: #d7e1ee;
    --border-secondary: #e6edf5;
    position: relative;
    isolation: isolate;
    width: min(100%, 640px);
    max-width: 640px;
    padding: clamp(34px, 3.2vw, 54px);
    overflow: hidden;
    color: #0b1b34;
    border: 1px solid rgba(215, 225, 238, .94);
    border-radius: 30px;
    background: linear-gradient(155deg, #ffffff 0%, #fbfdff 72%, #f2f7fd 100%);
    box-shadow: 0 34px 80px rgba(0, 6, 20, .34), 0 9px 26px color-mix(in srgb, var(--login-accent) 10%, transparent), inset 0 1px #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .login-card::before { height: 3px; background: linear-gradient(90deg, var(--login-accent), var(--login-accent-secondary) 68%, transparent); }
  .login-card::after { top: -135px; right: -125px; width: 300px; height: 300px; border-color: color-mix(in srgb, var(--login-accent) 10%, transparent); box-shadow: 0 0 0 46px color-mix(in srgb, var(--login-accent) 2.5%, transparent); }
  .mobile-brand { display: none; }

  .login-portal-heading {
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 0 0 26px;
    padding: 0 0 26px;
    border-bottom: 1px solid #dbe4ef;
  }
  .login-portal-icon,
  html[data-theme="light"] .login-portal-icon,
  html[data-theme="light"] body[data-login-portal="management"] .login-portal-icon {
    width: 62px;
    height: 62px;
    color: #ffffff;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--login-accent), var(--login-accent-secondary));
    box-shadow: 0 13px 28px color-mix(in srgb, var(--login-accent) 27%, transparent), inset 0 1px rgba(255, 255, 255, .25);
  }
  .login-portal-icon svg { width: 29px; height: 29px; stroke-width: 2; }
  .login-heading .eyebrow { color: var(--login-accent); font-size: 15px; font-weight: 760; letter-spacing: .01em; text-transform: none; }
  .login-heading h2 { margin: 5px 0 8px; color: #0b1b34; font-size: clamp(29px, 2.2vw, 38px); font-weight: 780; line-height: 1.08; letter-spacing: -.035em; }
  .login-subtitle { max-width: 450px; color: #60728d; font-size: 14px; line-height: 1.55; }

  #loginForm .field-label:first-child { margin-top: 0; }
  .field-label { margin: 22px 0 9px; color: #243a58; font-size: 13px; font-weight: 650; }
  .input-shell,
  html[data-theme="light"] .input-shell {
    min-height: 60px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid #d5deec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(24, 52, 90, .025);
  }
  .input-shell:hover,
  html[data-theme="light"] .input-shell:hover { border-color: color-mix(in srgb, var(--login-accent) 32%, #d5deec); }
  .input-shell:focus-within,
  html[data-theme="light"] .input-shell:focus-within { border-color: var(--login-accent); background: #ffffff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--login-accent) 10%, transparent); }
  .input-shell > svg { width: 19px; height: 19px; color: #6e819d; }
  .input-shell input { height: 58px; color: #0b1b34; font-size: 15px; }
  .input-shell input::placeholder,
  html[data-theme="light"] .input-shell input::placeholder { color: #8292aa; }
  .input-shell .icon-button { width: 34px; height: 34px; color: #546984; border-radius: 9px; }
  .input-shell .icon-button:hover { color: var(--login-accent); background: #edf5ff; }

  .login-row { min-height: 32px; margin: 19px 0 22px; }
  .check-label { gap: 9px; color: #334965; font-size: 14px; font-weight: 550; }
  .check-label input {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    margin: 0;
    appearance: none;
    border: 1px solid #b8c6d8;
    border-radius: 6px;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }
  .check-label input:checked { border-color: var(--login-accent); background-color: var(--login-accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); box-shadow: 0 5px 12px color-mix(in srgb, var(--login-accent) 22%, transparent); }
  .check-label input:focus-visible { outline: 3px solid color-mix(in srgb, var(--login-accent) 18%, transparent); outline-offset: 2px; }
  .text-button { color: var(--login-accent); font-size: 14px; font-weight: 650; }
  .text-button:hover { color: color-mix(in srgb, var(--login-accent) 72%, #001a45); }

  #loginSubmit {
    min-height: 64px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(110deg, #126bff, #1479ff 52%, #20b8ed);
    box-shadow: 0 16px 32px rgba(18, 107, 255, .25);
    font-size: 16px;
    font-weight: 720;
    transition: filter 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }
  body[data-login-portal="management"] #loginSubmit { background: linear-gradient(110deg, #1479ff, #6d4cf4); }
  #loginSubmit:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 20px 38px color-mix(in srgb, var(--login-accent) 31%, transparent); }
  #loginSubmit:active:not(:disabled) { transform: translateY(0) scale(.995); }
  #loginSubmit:disabled { cursor: not-allowed; filter: saturate(.75); opacity: .72; }
  #loginSubmit svg { width: 20px; height: 20px; }

  .form-message:empty { display: none; }
  .form-message:not(:empty) {
    min-height: 0;
    display: block;
    margin: 0 0 20px;
    padding: 12px 14px;
    color: #b42335;
    border: 1px solid #f2b8c0;
    border-radius: 14px;
    background: #fff2f4;
    font-size: 12px;
    line-height: 1.45;
  }
  .form-message:not(:empty)::before { content: "\26A0\FE0F  Login gagal"; display: block; margin-bottom: 4px; color: #941c2d; font-size: 13px; font-weight: 760; }
  .form-message[data-login-lock-countdown="true"]::before { content: "\23F1  Akun dikunci sementara"; }
  .form-message.is-success:not(:empty) { color: #166342; border-color: #a9dfc7; background: #effaf5; }
  .form-message.is-success:not(:empty)::before { content: "\2713  Siap digunakan"; color: #12603e; }

  .login-security-badge {
    position: absolute;
    z-index: 4;
    bottom: 62px;
    left: clamp(38px, 4.3vw, 74px);
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    color: #ffffff;
    border: 1px solid rgba(82, 137, 203, .24);
    border-radius: 14px;
    background: rgba(3, 21, 47, .72);
    -webkit-backdrop-filter: blur(11px);
    backdrop-filter: blur(11px);
  }
  .login-security-badge > svg { width: 27px; height: 27px; color: #18c97a; }
  .login-security-badge strong,
  .login-security-badge small { display: block; }
  .login-security-badge strong { color: #f4f9ff; font-size: 12px; }
  .login-security-badge small { margin-top: 2px; color: #a9bad0; font-size: 10px; }

  .login-footer,
  html[data-theme="light"] .login-footer {
    position: absolute;
    z-index: 4;
    bottom: 24px;
    left: clamp(38px, 4.3vw, 74px);
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0;
    color: #aebed2;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 10px;
    white-space: nowrap;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .login-footer i { color: var(--login-accent); font-style: normal; }

  @media (max-height: 820px) and (min-width: 1024px) {
    .login-visual { padding: 26px clamp(34px, 3.7vw, 54px) 115px; }
    .login-brand { gap: 11px; }
    .login-brand .brand-logo { width: 48px; height: 48px; }
    .login-brand strong { font-size: clamp(22px, 2vw, 29px); }
    .login-brand small { font-size: 9px; }
    .hero-copy { margin-top: 19px; }
    .hero-kicker { min-height: 31px; margin-bottom: 13px; padding: 6px 11px; font-size: 8px; }
    .hero-kicker > svg { width: 14px; height: 14px; }
    .hero-copy .desktop-hero-title { font-size: clamp(35px, 3.55vw, 50px); line-height: 1; }
    .desktop-hero-title em { margin-top: 5px; }
    .hero-copy .desktop-hero-text { margin-top: 11px; font-size: clamp(11px, 1.05vw, 14px); line-height: 1.45; }
    .login-feature-grid { gap: 9px; margin-top: 17px; }
    .login-feature-grid article { min-height: 112px; padding: 12px; border-radius: 14px; }
    .login-feature-grid article > svg { width: 34px; height: 34px; margin-bottom: 9px; padding: 8px; }
    .login-feature-grid b { font-size: 10px; }
    .login-feature-grid small { margin-top: 4px; font-size: 8px; line-height: 1.35; }
    .login-panel { padding: 18px 24px; }
    .login-card { max-width: 590px; padding: 24px 30px; border-radius: 24px; }
    .login-portal-heading { grid-template-columns: 48px minmax(0, 1fr); gap: 13px; margin-bottom: 15px; padding-bottom: 15px; }
    .login-portal-icon { width: 48px; height: 48px; border-radius: 14px; }
    .login-portal-icon svg { width: 23px; height: 23px; }
    .login-heading .eyebrow { font-size: 10px; }
    .login-heading h2 { margin: 3px 0 5px; font-size: clamp(22px, 2vw, 28px); }
    .login-subtitle { font-size: 10px; line-height: 1.4; }
    .field-label { margin-top: 13px; margin-bottom: 6px; font-size: 10px; }
    .input-shell { min-height: 48px; border-radius: 12px; }
    .input-shell input { height: 46px; font-size: 12px; }
    .login-row { min-height: 27px; margin: 12px 0 14px; }
    .check-label, .text-button { font-size: 10px; }
    .check-label input { width: 17px; height: 17px; border-radius: 5px; }
    #loginSubmit { min-height: 52px; border-radius: 13px; font-size: 12px; }
    .form-message:not(:empty) { margin-bottom: 12px; padding: 8px 10px; font-size: 9px; }
    .form-message:not(:empty)::before { font-size: 10px; }
    .login-security-badge { bottom: 45px; left: clamp(34px, 3.7vw, 54px); padding: 7px 10px; }
    .login-security-badge > svg { width: 21px; height: 21px; }
    .login-security-badge strong { font-size: 9px; }
    .login-security-badge small { font-size: 8px; }
    .login-footer { bottom: 15px; left: clamp(34px, 3.7vw, 54px); font-size: 8px; }
  }

  @media (min-height: 821px) and (max-height: 920px) and (min-width: 1024px) {
    .login-visual { padding: 34px clamp(42px, 4vw, 64px) 124px; }
    .login-brand .brand-logo { width: 55px; height: 55px; }
    .login-brand strong { font-size: clamp(25px, 2.25vw, 34px); }
    .login-brand small { font-size: 10px; }
    .hero-copy { margin-top: 25px; }
    .hero-kicker { min-height: 34px; margin-bottom: 16px; padding: 7px 13px; font-size: 9px; }
    .hero-kicker > svg { width: 15px; height: 15px; }
    .hero-copy .desktop-hero-title { font-size: clamp(39px, 3.75vw, 57px); line-height: .99; }
    .desktop-hero-title em { margin-top: 6px; }
    .hero-copy .desktop-hero-text { margin-top: 13px; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.48; }
    .login-feature-grid { gap: 11px; margin-top: 20px; }
    .login-feature-grid article { min-height: 126px; padding: 14px; border-radius: 15px; }
    .login-feature-grid article > svg { width: 38px; height: 38px; margin-bottom: 10px; padding: 9px; }
    .login-feature-grid b { font-size: 11px; }
    .login-feature-grid small { margin-top: 5px; font-size: 9px; line-height: 1.38; }
    .login-panel { padding: 24px 30px; }
    .login-card { max-width: 620px; padding: 30px 36px; border-radius: 26px; }
    .login-portal-heading { grid-template-columns: 56px minmax(0, 1fr); gap: 15px; margin-bottom: 18px; padding-bottom: 18px; }
    .login-portal-icon { width: 56px; height: 56px; border-radius: 16px; }
    .login-portal-icon svg { width: 26px; height: 26px; }
    .login-heading .eyebrow { font-size: 12px; }
    .login-heading h2 { margin: 4px 0 6px; font-size: clamp(26px, 2.1vw, 33px); }
    .login-subtitle { font-size: 12px; line-height: 1.45; }
    .field-label { margin-top: 16px; margin-bottom: 7px; font-size: 11px; }
    .input-shell { min-height: 54px; border-radius: 14px; }
    .input-shell input { height: 52px; font-size: 13px; }
    .login-row { min-height: 29px; margin: 14px 0 17px; }
    .check-label, .text-button { font-size: 11px; }
    .check-label input { width: 18px; height: 18px; }
    #loginSubmit { min-height: 56px; border-radius: 14px; font-size: 14px; }
    .form-message:not(:empty) { margin-bottom: 14px; padding: 9px 11px; font-size: 10px; }
    .form-message:not(:empty)::before { font-size: 11px; }
    .login-security-badge { bottom: 50px; left: clamp(42px, 4vw, 64px); padding: 8px 11px; }
    .login-security-badge > svg { width: 23px; height: 23px; }
    .login-security-badge strong { font-size: 10px; }
    .login-security-badge small { font-size: 8px; }
    .login-footer { bottom: 18px; left: clamp(42px, 4vw, 64px); font-size: 9px; }
  }

  @media (max-width: 1023px) {
    .login-view,
    html[data-theme="light"] .login-view {
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      padding: 22px max(14px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
      overflow-x: clip;
      overflow-y: auto;
      background:
        radial-gradient(circle at 72% 8%, color-mix(in srgb, var(--login-accent) 13%, transparent), transparent 28%),
        linear-gradient(180deg, #020d20 0%, #03172d 50%, #020a19 100%);
    }

    .login-visual,
    html[data-theme="light"] .login-visual {
      position: relative;
      inset: auto;
      order: 1;
      width: min(100%, 760px);
      height: auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      padding: 0;
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .login-visual-overlay { display: none; }

    .login-brand,
    html[data-theme="light"] .login-brand.brand-light {
      position: relative;
      display: inline-flex;
      align-self: flex-start;
      gap: 11px;
      margin: 0 0 22px;
      color: #ffffff;
    }
    .login-brand .brand-logo,
    html[data-theme="light"] .login-brand .brand-logo { width: 48px; height: 48px; }
    .login-brand strong,
    html[data-theme="light"] .login-brand.brand-light strong { font-size: 23px; }
    .login-brand small,
    html[data-theme="light"] .login-brand.brand-light small { color: #b8c7db; font-size: 9px; }

    .hero-copy,
    html[data-theme="light"] .hero-copy {
      position: relative;
      isolation: isolate;
      width: 100%;
      min-height: 246px;
      margin: 0;
      padding: 26px 22px;
      overflow: hidden;
      color: #ffffff;
      border: 1px solid rgba(125, 167, 223, .35);
      border-radius: 22px;
      background: #03172d;
      box-shadow: 0 18px 40px rgba(0, 5, 18, .26), inset 0 1px rgba(255, 255, 255, .05);
      text-align: left;
      transform: none;
    }
    .hero-copy::after {
      content: "";
      position: absolute;
      z-index: 0;
      inset: 0;
      display: block;
      background-image: url("images/login-network-hero.png");
      background-position: 30% 72%;
      background-size: 145% auto;
      background-repeat: no-repeat;
      transform: scaleX(-1);
    }
    .hero-copy::before {
      content: "";
      position: absolute;
      z-index: 1;
      inset: 0;
      display: block;
      height: auto;
      background: linear-gradient(90deg, rgba(2, 13, 32, .98) 0%, rgba(2, 13, 32, .93) 36%, rgba(2, 13, 32, .46) 66%, rgba(2, 13, 32, .12) 100%);
    }
    .hero-copy > * { position: relative; z-index: 2; }
    .hero-kicker,
    .desktop-hero-title,
    .desktop-hero-text { display: none !important; }
    .mobile-hero-portal { width: min(62%, 320px); display: flex; align-items: center; gap: 11px; color: var(--login-accent); font-size: 16px; font-weight: 760; }
    .mobile-hero-icon { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; color: #ffffff; border: 1px solid rgba(115, 175, 255, .52); border-radius: 14px; background: linear-gradient(145deg, var(--login-accent), #164ab6); box-shadow: 0 9px 21px color-mix(in srgb, var(--login-accent) 28%, transparent), inset 0 1px rgba(255, 255, 255, .2); }
    .mobile-hero-icon svg { width: 23px; height: 23px; }
    .mobile-hero-title { width: min(58%, 310px); display: block; margin: 20px 0 10px; color: #ffffff; font-size: clamp(28px, 7vw, 38px); font-weight: 790; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
    .mobile-hero-subtitle { width: min(58%, 320px); display: block; margin: 0; color: #c5d2e3; font-size: 13px; line-height: 1.5; }

    .login-feature-grid {
      position: relative;
      inset: auto;
      width: 100%;
      min-height: 126px;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      margin: 18px 0 0;
      padding: 14px 8px;
      overflow: hidden;
      border: 1px solid rgba(125, 167, 223, .31);
      border-radius: 20px;
      background: rgba(3, 23, 50, .76);
      box-shadow: inset 0 1px rgba(255, 255, 255, .04);
    }
    .login-feature-grid article,
    html[data-theme="light"] .login-feature-grid article {
      min-height: 96px;
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr);
      align-content: center;
      align-items: start;
      gap: 9px;
      padding: 7px 10px;
      color: #ffffff;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      transform: none;
    }
    .login-feature-grid article + article { border-left: 1px solid rgba(125, 167, 223, .25); }
    .login-feature-grid article > svg,
    html[data-theme="light"] .login-feature-grid article > svg { width: 40px; height: 40px; margin: 0; padding: 9px; border-radius: 12px; }
    .login-feature-grid article > span { min-width: 0; }
    .login-feature-grid b,
    .login-feature-grid small { display: none !important; }
    .login-feature-grid em { display: block; color: #aebfd4; font-size: 9px; font-style: normal; line-height: 1.4; }
    .login-feature-grid em strong { display: block; margin-bottom: 6px; color: #ffffff; font-size: 12px; font-style: normal; }

    .login-panel {
      position: relative;
      order: 2;
      width: min(100%, 680px);
      min-height: 0;
      display: block;
      margin: 24px 0 0;
      padding: 0;
    }
    .login-card,
    html[data-theme="light"] .login-card,
    html[data-theme="light"] body[data-login-portal="management"] .login-card {
      width: 100%;
      max-width: none;
      padding: clamp(22px, 5vw, 32px);
      border-radius: 24px;
      background: linear-gradient(155deg, #ffffff, #fbfdff 74%, #f1f6fc);
      box-shadow: 0 22px 52px rgba(0, 6, 20, .3), inset 0 1px #ffffff;
    }
    .login-card::after { top: -120px; right: -125px; width: 250px; height: 250px; }
    .mobile-brand,
    .login-portal-heading { display: none; }
    .field-label { margin-top: 24px; font-size: 13px; }
    #loginForm .field-label:first-child { margin-top: 0; }
    .input-shell { min-height: 58px; }
    .input-shell input { height: 56px; font-size: 15px; }
    .login-row { margin: 18px 0 21px; }
    #loginSubmit { min-height: 60px; }
    .form-message:not(:empty) { margin-bottom: 18px; }
    .login-security-badge {
      position: relative;
      order: 3;
      inset: auto;
      width: min(100%, 680px);
      display: flex;
      justify-content: center;
      margin: 22px 0 0;
      padding: 0;
      color: #ffffff;
      border: 0;
      border-radius: 0;
      background: transparent;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
    .login-security-badge > svg { flex: 0 0 auto; }
    .login-footer,
    html[data-theme="light"] .login-footer {
      position: relative;
      order: 4;
      inset: auto;
      justify-content: center;
      width: min(100%, 680px);
      margin: 20px 0 0;
      color: #9fb0c6;
      font-size: 10px;
      white-space: normal;
      text-align: center;
    }
  }

  @media (max-width: 639px) {
    .login-view,
    html[data-theme="light"] .login-view { padding-top: 18px; }
    .login-brand { margin-bottom: 18px; }
    .login-brand .brand-logo { width: 44px; height: 44px; }
    .login-brand strong { font-size: 21px; }
    .hero-copy { min-height: 232px; padding: 21px 18px; border-radius: 20px; }
    .mobile-hero-portal { gap: 9px; font-size: 14px; }
    .mobile-hero-icon { width: 43px; height: 43px; border-radius: 12px; }
    .mobile-hero-icon svg { width: 20px; height: 20px; }
    .mobile-hero-title { margin-top: 17px; font-size: clamp(26px, 8vw, 33px); }
    .mobile-hero-subtitle { font-size: 11px; }
    .login-feature-grid { min-height: 118px; margin-top: 15px; padding: 11px 4px; border-radius: 18px; }
    .login-feature-grid article { min-height: 94px; grid-template-columns: 36px minmax(0, 1fr); gap: 7px; padding: 6px 7px; }
    .login-feature-grid article > svg { width: 36px; height: 36px; padding: 8px; }
    .login-feature-grid em { font-size: 8px; }
    .login-feature-grid em strong { margin-bottom: 5px; font-size: 10px; }
    .login-panel { margin-top: 20px; }
    .login-card { padding: 22px 18px; border-radius: 22px; }
    .field-label { margin-top: 22px; }
    .input-shell { min-height: 56px; padding: 0 13px; border-radius: 14px; }
    .input-shell input { height: 54px; font-size: 14px; }
    .login-row { flex-wrap: nowrap; gap: 8px; margin: 16px 0 19px; }
    .check-label, .text-button { font-size: 12px; }
    .check-label input { width: 19px; height: 19px; }
    #loginSubmit { min-height: 58px; border-radius: 14px; font-size: 14px; }
    .login-security-badge { margin-top: 19px; }
    .login-security-badge strong { font-size: 11px; }
    .login-security-badge small { font-size: 9px; }
    .login-footer { margin-top: 17px; }
  }

  @media (max-width: 359px) {
    .login-view,
    html[data-theme="light"] .login-view { padding-right: 9px; padding-left: 9px; }
    .login-brand strong { font-size: 19px; }
    .hero-copy { min-height: 218px; padding: 18px 14px; }
    .mobile-hero-title { font-size: 24px; }
    .mobile-hero-subtitle { font-size: 10px; }
    .login-feature-grid { padding-right: 2px; padding-left: 2px; }
    .login-feature-grid article { grid-template-columns: 32px minmax(0, 1fr); gap: 5px; padding: 5px; }
    .login-feature-grid article > svg { width: 32px; height: 32px; padding: 7px; }
    .login-feature-grid em { font-size: 7px; }
    .login-feature-grid em strong { font-size: 9px; }
    .login-card { padding: 20px 14px; }
    .check-label, .text-button { font-size: 11px; }
  }
}
