/* EDL v2 login — scoped under .login2 (native CSS nesting) */
.login2 {
    .login-card {
      width: 100%;
      max-width: 880px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 22px;
      box-shadow: var(--shadow-2);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    /* aside (panel hijau) */
    .login-aside {
      position: relative;
      background: linear-gradient(180deg, #11637d 0%, #147063 45%, #0c4b30 100%);
      color: #eafaf1;
      padding: 44px 38px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    .login-aside::after {
      content: "";
      position: absolute;
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .06);
      bottom: -90px;
      right: -70px;
    }

    .login-aside::before {
      content: "";
      position: absolute;
      width: 170px;
      height: 170px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .05);
      top: -50px;
      left: -40px;
    }

    .aside-mark {
      width: 58px;
      height: 58px;
      border-radius: 15px;
      background: rgba(255, 255, 255, .15);
      display: grid;
      place-items: center;
      margin-bottom: 22px;
      position: relative;
    }

    .aside-mark svg {
      width: 30px;
      height: 30px;
      fill: #fff;
    }

    .login-aside h2 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 25px;
      margin: 0 0 12px;
      color: #fff;
      position: relative;
    }

    .login-aside p {
      font-size: 14px;
      color: #bfe6d3;
      margin: 0 0 24px;
      position: relative;
    }

    .aside-list {
      list-style: none;
      margin: 0;
      padding: 0;
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 13px;
    }

    .aside-list li {
      display: flex;
      align-items: center;
      gap: 11px;
      font-size: 13.5px;
      color: #dff3e8;
    }

    .aside-list svg {
      width: 20px;
      height: 20px;
      fill: #7af0b8;
      flex: none;
    }

    /* form side */
    .login-main {
      padding: 40px 38px;
    }

    .login-main h1 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 23px;
      color: var(--ink);
      margin: 0 0 4px;
    }

    .login-main .lead {
      font-size: 13.5px;
      color: var(--muted);
      margin: 0 0 22px;
    }

    .tabs {
      display: flex;
      gap: 6px;
      background: var(--bg);
      padding: 5px;
      border-radius: 12px;
      margin-bottom: 24px;
    }

    .tabs button {
      flex: 1;
      border: none;
      background: transparent;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 600;
      color: var(--body);
      padding: 10px;
      border-radius: 9px;
      cursor: pointer;
      transition: all .18s;
    }

    .tabs button.active {
      background: var(--surface);
      color: var(--primary);
      box-shadow: var(--shadow-1);
    }

    .pane {
      display: none;
    }

    .pane.active {
      display: block;
      animation: fade .35s ease;
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(6px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    .field {
      margin-bottom: 16px;
    }

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 7px;
    }

    .field input {
      width: 100%;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      font-family: inherit;
      font-size: 14px;
      color: var(--ink);
      background: var(--surface);
      transition: border-color .18s, box-shadow .18s;
    }

    .field input:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(22, 160, 106, .15);
    }

    .input-group {
      display: flex;
    }

    .input-group input {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
    }

    .input-group .suffix {
      display: flex;
      align-items: center;
      padding: 0 14px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-left: none;
      border-radius: 0 10px 10px 0;
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
      white-space: nowrap;
    }

    .pwd-wrap {
      position: relative;
    }

    .pwd-wrap input {
      padding-right: 44px;
    }

    .pwd-toggle {
      position: absolute;
      right: 6px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      display: grid;
      place-items: center;
      color: var(--muted);
    }

    .pwd-toggle svg {
      width: 18px;
      height: 18px;
      fill: var(--muted);
    }

    .row-between {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .check {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: var(--body);
      cursor: pointer;
    }

    .check input {
      width: 16px;
      height: 16px;
      accent-color: var(--accent);
      cursor: pointer;
    }

    /* Tab Warga JAS tiada "Ingat saya" (log masuk AD tidak menyokongnya), jadi
       pautan set semula ditolak ke kanan supaya ia sebaris dgn kedudukan yang
       sama spt tab Pengguna. */
    .row-between.row-end {
      justify-content: flex-end;
    }

    .link-accent {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent-700);
    }

    .link-accent:hover {
      text-decoration: underline;
    }

    .btn-submit {
      width: 100%;
      padding: 13px;
      border: none;
      border-radius: 10px;
      background: linear-gradient(135deg, #5fd0c6 0%, #3fb89e 100%);
      color: #063b32;
      font-family: inherit;
      font-weight: 700;
      font-size: 14.5px;
      cursor: pointer;
      transition: background .2s, transform .15s;
    }

    .btn-submit:hover {
      background: linear-gradient(135deg, #4fc0b6 0%, #34a58d 100%);
      transform: translateY(-1px);
    }

    .form-foot {
      text-align: center;
      font-size: 13.5px;
      color: var(--muted);
      margin: 18px 0 0;
    }

    /* .staff-note dibuang bersama kotak nota kuning pd tab Warga JAS. */

    /* ===== FOOTER ===== */
  @media (max-width:760px){ .login-card{grid-template-columns:1fr;max-width:460px;} .login-aside{display:none;} .login-main{padding:32px 26px;} }
}
