/* ===== Premium two-panel login page ===== */
.login-page {
  min-height: 100vh;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(700px 400px at 12% 10%, rgba(60, 156, 216, .16), transparent 60%),
    radial-gradient(700px 400px at 88% 90%, rgba(123, 92, 240, .14), transparent 60%),
    linear-gradient(135deg, #eef3fb 0%, #e6eefb 100%);
  background-size: 200% 200%, 200% 200%, auto;
  animation: loginBg 18s ease infinite;
  font-family: inherit;
}
@keyframes loginBg {
  0%, 100% { background-position: 0% 0%, 100% 100%, center; }
  50% { background-position: 100% 100%, 0% 0%, center; }
}

.login-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 940px;
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(12, 40, 90, .22), 0 8px 24px rgba(12, 40, 90, .08);
  animation: loginCardIn .7s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(26px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Left panel ---------- */
.login-left {
  padding: 40px 46px 30px;
  display: flex;
  flex-direction: column;
}
/* staggered entrance for the form column */
.login-left > * {
  opacity: 0;
  animation: loginUp .6s cubic-bezier(.22, 1, .36, 1) forwards;
}
.login-left > *:nth-child(1) { animation-delay: .12s; }
.login-left > *:nth-child(2) { animation-delay: .18s; }
.login-left > *:nth-child(3) { animation-delay: .24s; }
.login-left > *:nth-child(4) { animation-delay: .30s; }
.login-left > *:nth-child(5) { animation-delay: .36s; }
.login-left > *:nth-child(6) { animation-delay: .42s; }
.login-left > *:nth-child(7) { animation-delay: .48s; }
@keyframes loginUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.login-logo {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
}
.login-logo img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.login-logo:hover img { transform: translateY(-2px) scale(1.02); }

.login-title {
  margin: 22px 0 16px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #7b2ff7, #b32dc8, #0c5c9e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #ffe1e6;
  border: 1px solid #ffc2cc;
  color: #b3243b;
  font-size: 14px;
  font-weight: 600;
}

.login-form { display: flex; flex-direction: column; }

.login-field { display: block; margin-bottom: 16px; }
.login-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #2f3b4a;
}
.login-field input,
.login-pw input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: #14213d;
  background: #fbfdff;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.login-field input::placeholder,
.login-pw input::placeholder { color: #a7b4c4; }
.login-field input:focus,
.login-pw input:focus {
  outline: 0;
  background: #fff;
  border-color: #3c9cd8;
  box-shadow: 0 0 0 4px rgba(60, 156, 216, .16);
}

.login-pw { position: relative; }
.login-pw input { padding-right: 46px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 6px;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
}
.pw-toggle:hover { opacity: 1; transform: translateY(-50%) scale(1.1); }

.login-forgot {
  align-self: flex-end;
  margin: 2px 2px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #5b6675;
  transition: color .2s ease;
}
.login-forgot:hover { color: #0c5c9e; }

.login-btn {
  position: relative;
  overflow: hidden;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c5c9e, #0c3c54);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.login-btn:hover { transform: translateY(-2px); }
.login-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.login-btn:hover::after { left: 130%; }

/* oauth buttons */
.login-oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid #d5deea;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #2f3b4a;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), border-color .25s ease, background .25s ease;
}
.oauth-btn:hover {
  transform: translateY(-2px);
  border-color: #b9cbe4;
  background: #f7fafe;
}
.oauth-ic {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font-weight: 800;
  font-size: 15px;
  flex: none;
}
.oauth-ic.g {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
}
.oauth-ic.ms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 18px;
  height: 18px;
}
.oauth-ic.ms i { display: block; width: 100%; height: 100%; }
.oauth-ic.ms i:nth-child(1) { background: #f25022; }
.oauth-ic.ms i:nth-child(2) { background: #7fba00; }
.oauth-ic.ms i:nth-child(3) { background: #00a4ef; }
.oauth-ic.ms i:nth-child(4) { background: #ffb900; }

.login-alts {
  margin-top: 22px;
  text-align: center;
}
.login-alts p {
  margin: 6px 0;
  font-size: 14px;
  color: #4a5666;
}
.login-alts a {
  color: #0c5c9e;
  font-weight: 700;
}
.login-alts a:hover { text-decoration: underline; }

.login-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eef2f7;
}
.login-foot a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #7a8697;
  transition: color .2s ease;
}
.login-foot a:hover { color: #0c5c9e; }

/* ---------- Right panel — premium glass dashboard ---------- */
.login-right {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 38px;
  color: #fff;
  background:
    radial-gradient(500px 340px at 82% 6%, rgba(120, 150, 255, .5), transparent 60%),
    radial-gradient(460px 320px at 10% 100%, rgba(150, 110, 240, .45), transparent 60%),
    linear-gradient(150deg, #14265c 0%, #1e3a80 45%, #3a2b78 100%);
  background-size: auto, auto, 200% 200%;
  animation: loginRightBg 16s ease infinite;
}
@keyframes loginRightBg {
  0%, 100% { background-position: center, center, 0% 50%; }
  50% { background-position: center, center, 100% 50%; }
}

/* subtle dotted grid */
.lr-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent 78%);
  pointer-events: none;
}

.lr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}
.lr-orb-1 { width: 150px; height: 150px; left: -30px; top: 8%; background: radial-gradient(circle, rgba(90,150,255,.55), transparent 70%); animation: lrFloat 9s ease-in-out infinite; }
.lr-orb-2 { width: 190px; height: 190px; right: -50px; top: 18%; background: radial-gradient(circle, rgba(150,110,240,.5), transparent 70%); animation: lrFloat 12s ease-in-out infinite reverse; }
.lr-orb-3 { width: 120px; height: 120px; right: 16%; bottom: 6%; background: radial-gradient(circle, rgba(90,180,230,.45), transparent 70%); animation: lrFloat 10s ease-in-out infinite; }
@keyframes lrFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(16px, -22px); }
}

.lr-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

/* ===== below this line: filled in to complete the page — replace with the
   original rules when the rest of login.css is available ===== */

/* the React app's global reset, which a JSP page doesn't get for free */
.login-page, .login-page * { box-sizing: border-box; }
body.login-page { margin: 0; font-family: 'IBM Plex Sans', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.login-page a { text-decoration: none; }
.login-title, .lr-title { line-height: 1.2; }

.lr-title {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lr-sub {
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
}

.lr-card {
  position: relative;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(8, 20, 55, .28);
}

.lr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.lr-dots { display: flex; gap: 6px; }
.lr-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.lr-bar span { font-size: 12px; color: rgba(255, 255, 255, .8); }

.lr-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lr-tile {
  padding: 12px 14px;
  background: rgba(255, 255, 255, .12);
  border-radius: 12px;
}
.lr-tile b { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .75); }
.lr-tile strong { display: block; margin: 6px 0 4px; font-size: 22px; font-weight: 800; }
.lr-tile em { font-style: normal; font-size: 12px; color: #7ee2a8; }

.lr-spark { margin-top: 14px; }
.lr-spark svg { display: block; width: 100%; height: 70px; }

.lr-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: #14213d;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(8, 20, 55, .3);
  animation: lrFloat 7s ease-in-out infinite;
}
.lr-pill i { width: 15px; height: 15px; border-radius: 50%; flex: none; }
.lr-pill-1 { left: -26px; top: 42%; }
.lr-pill-1 i { background: #f5b544; }
.lr-pill-2 { right: -20px; bottom: 8%; animation-direction: reverse; }
.lr-pill-2 i { background: #12b76a; }

.lr-copy {
  position: relative;
  z-index: 2;
  margin: 26px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 860px) {
  .login-card { grid-template-columns: 1fr; max-width: 480px; }
  .login-right { order: 2; padding: 34px 26px; }
  .login-left { order: 1; padding: 32px 28px 24px; }
  .lr-pill { display: none; }
  .lr-title { font-size: 26px; }
}

@media (max-width: 420px) {
  .login-page { padding: 18px 12px; }
  .login-card { border-radius: 18px; }
  .login-left { padding: 26px 20px 20px; }
  .login-title { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page,
  .login-right,
  .login-card,
  .login-left > *,
  .lr-orb,
  .lr-pill { animation: none; }
  .login-left > * { opacity: 1; }
}

/* ===== fit the card within the viewport so the page never scrolls on a desktop ===== */

@media (min-width: 861px) {
  .login-page {
    height: 100vh;
    padding: 16px 20px;
  }

  .login-card {
    max-height: calc(100vh - 32px);
  }

  /* if a very short window still overflows, scroll the form column, not the page */
  .login-left { overflow-y: auto; }
  .login-right { overflow: hidden; }
}

/* tighter vertical rhythm - every value below only reduces spacing */
.login-left { padding: 26px 44px 22px; }
.login-logo img { height: 38px; }

.login-title {
  margin: 14px 0 12px;
  font-size: 26px;
}

.login-error {
  margin-bottom: 12px;
  padding: 9px 14px;
  font-size: 13px;
}

.login-field { margin-bottom: 12px; }
.login-field > span { margin-bottom: 5px; font-size: 13.5px; }

.login-field input,
.login-pw input { padding: 11px 14px; }

.login-forgot { margin: 0 2px 14px; }
.login-btn { padding: 12px 20px; }

.login-oauth { gap: 10px; margin-top: 14px; }
.oauth-btn { padding: 9px 16px; }

.login-alts { margin-top: 14px; }
.login-alts p { margin: 4px 0; font-size: 13.5px; }

.login-foot {
  margin-top: 14px;
  padding-top: 12px;
  gap: 16px;
}

.login-right { padding: 32px 34px; }
.lr-title { font-size: 30px; }
.lr-sub { margin-bottom: 22px; }
.lr-card { padding: 16px; }

/* ===== phones ===== */

@media (max-width: 600px) {
  /* full bleed reads better than a floating card on a small screen */
  .login-page { padding: 0; place-items: stretch; }
  .login-card {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .login-left { padding: 28px 20px 24px; }
  .login-title { font-size: 25px; }

  /* 16px keeps iOS from zooming in when a field is focused */
  .login-field input,
  .login-pw input { font-size: 16px; padding: 12px 14px; }

  .login-btn { padding: 14px 20px; font-size: 16px; }
  .oauth-btn { padding: 12px 16px; min-height: 46px; }
  .pw-toggle { padding: 10px; right: 4px; }

  .login-right { padding: 26px 20px 30px; }
  .lr-title { font-size: 22px; }
  .lr-sub { font-size: 14px; margin-bottom: 18px; }
  .lr-card { padding: 14px; }
  .lr-tile strong { font-size: 18px; }
  .lr-spark svg { height: 52px; }

  .login-alts p { font-size: 14px; }
  .login-foot { gap: 12px; }

  /* small text links still get a finger sized tap area */
  .login-forgot { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 4px; }
  .login-foot a { display: inline-flex; align-items: center; min-height: 40px; }
  .login-alts a { display: inline-block; padding: 8px 4px; margin: -8px -4px; }
}

@media (max-width: 400px) {
  .login-left { padding: 22px 16px 20px; }
  .login-title { font-size: 22px; }
  .login-logo img { height: 34px; }
  .lr-tiles { grid-template-columns: 1fr; }
}

/* touch screens: a tap must not be spent on a hover lift or shine */
@media (hover: none) {
  .login-btn:hover,
  .oauth-btn:hover { transform: none; }
  .login-btn:hover::after { left: -120%; }
}
