  :root {
    --navy: #16323F;
    --navy-deep: #0E222C;
    --navy-soft: #1F4150;
    --tan: #E8A77A;
    --tan-deep: #D08A5C;
    --bone: #FAF8F4;
    --paper: #F2EEE7;
    --ink: #1A1A1A;
    --ink-soft: #4A4A4A;
    --shadow-md: 0 18px 40px rgba(14, 34, 44, 0.18);
    --shadow-lg: 0 30px 70px rgba(14, 34, 44, 0.28);
    --radius: 14px;
    --radius-lg: 22px;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; height: 100%; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--navy-deep);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
  h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; display: block; }

  /* ---- Left Panel (Brand) ---- */
  .brand-panel {
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(800px 500px at 20% 10%, rgba(232,167,122,0.18), transparent 60%),
      radial-gradient(700px 500px at 90% 90%, rgba(232,167,122,0.10), transparent 70%),
      linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .brand-panel::before {
    content: "EMPLOYEE";
    position: absolute;
    bottom: -30px;
    left: -10px;
    font-family: 'Playfair Display', serif;
    font-size: 14rem;
    color: rgba(232,167,122,0.06);
    font-style: italic;
    letter-spacing: -0.04em;
    pointer-events: none;
    line-height: 1;
  }
  .brand-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
  .brand-top img { height: 46px; }
  .brand-top span { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
  .brand-mid { position: relative; z-index: 1; max-width: 460px; }
  .brand-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--tan);
    margin-bottom: 16px;
    font-weight: 600;
  }
  .brand-mid h1 {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    margin: 0 0 14px;
    line-height: 1.15;
  }
  .brand-mid p {
    color: rgba(255,255,255,0.7);
    font-size: 1.02rem;
    margin: 0 0 28px;
    line-height: 1.6;
  }
  .brand-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
  }
  .brand-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: rgba(255,255,255,0.86);
    font-size: 0.96rem;
  }
  .brand-bullets svg { flex-shrink: 0; color: var(--tan); margin-top: 2px; }
  .brand-foot { position: relative; z-index: 1; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
  .brand-foot a { color: rgba(255,255,255,0.7); }
  .brand-foot a:hover { color: var(--tan); }

  /* ---- Right Panel (Form) ---- */
  .form-panel {
    background: var(--bone);
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .form-card {
    width: 100%;
    max-width: 440px;
  }
  .form-card .top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 36px;
    transition: color 0.2s;
  }
  .form-card .top-link:hover { color: var(--tan-deep); }
  .form-card h2 {
    font-size: 1.9rem;
    color: var(--navy-deep);
    margin: 0 0 8px;
  }
  .form-card .sub {
    color: var(--ink-soft);
    margin: 0 0 32px;
  }
  .field { margin-bottom: 18px; }
  .field label {
    display: block;
    font-size: 0.85rem;
    color: var(--navy-deep);
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 0.02em;
  }
  .field input {
    width: 100%;
    border: 1px solid rgba(22,50,63,0.18);
    background: #fff;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 0.98rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
  }
  .field input:focus {
    outline: none;
    border-color: var(--tan);
    box-shadow: 0 0 0 4px rgba(232,167,122,0.18);
  }
  .field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.9rem;
  }
  .field-row label {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ink-soft); cursor: pointer;
  }
  .field-row a { color: var(--tan-deep); font-weight: 500; }
  .field-row a:hover { text-decoration: underline; }

  .submit-btn {
    width: 100%;
    border: none;
    background: var(--navy);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
    letter-spacing: 0.01em;
  }
  .submit-btn:hover {
    background: var(--navy-deep);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .ms-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #2F2F2F;
    color: #fff;
    border: 1px solid #2F2F2F;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
    margin-bottom: 18px;
  }
  .ms-signin-btn:hover {
    background: #1F1F1F;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  .ms-signin-btn svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
  }
  .signin-note {
    font-size: 0.85rem;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0 0 8px;
  }

  .divider {
    display: flex; align-items: center; gap: 14px;
    margin: 26px 0;
    color: rgba(0,0,0,0.4);
    font-size: 0.82rem;
  }
  .divider::before, .divider::after {
    content: ""; flex: 1; height: 1px; background: rgba(22,50,63,0.12);
  }

  .alt-action {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
  }
  .alt-action a { color: var(--tan-deep); font-weight: 600; }
  .alt-action a:hover { text-decoration: underline; }

  .preview-banner {
    background: rgba(232,167,122,0.16);
    border: 1px solid rgba(232,167,122,0.4);
    color: var(--navy-deep);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.86rem;
    margin-bottom: 28px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .preview-banner svg { flex-shrink: 0; color: var(--tan-deep); margin-top: 2px; }

  /* ---- Responsive ---- */
  @media (max-width: 900px) {
    body { grid-template-columns: 1fr; }
    .brand-panel { padding: 36px 28px; min-height: 280px; }
    .brand-panel::before { font-size: 7rem; bottom: -10px; }
    .form-panel { padding: 40px 24px 56px; }
    .brand-mid h1 { font-size: 1.7rem; }
  }

/* small version tag next to the brand name */
.brand-ver { font-size: 0.58rem; font-weight: 500; color: var(--ink-soft, #6b7280); opacity: 0.7; letter-spacing: 0.03em; vertical-align: 0.35em; margin-left: 2px; }
