:root {
  --navy-950: #0d1f33;
  --navy-800: #1d3c5c;
  --blue-600: #007acc;
  --blue-100: #dbeafe;
  --slate-900: #1e293b;
  --slate-600: #64748b;
  --slate-300: #cbd5e1;
  --red-700: #991b1b;
}

* { box-sizing: border-box; }
html { font-size: 16px; min-height: 100%; }
body { margin: 0; color: var(--slate-900); font-family: "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
.eyebrow { display: inline-block; color: #a8c7e5; font-size: .73rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow.dark { color: var(--blue-600); }
.login-page { min-height: 100vh; background: #eef3f8; }
.login-shell { display: grid; grid-template-columns: minmax(340px, .95fr) minmax(440px, 1.05fr); min-height: 100vh; }
.login-brand-panel {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 100vh; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); color: white;
  background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
}
.login-brand-panel::before, .login-brand-panel::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-brand-panel::before { width: 32rem; height: 32rem; right: -17rem; top: -11rem; }
.login-brand-panel::after { width: 22rem; height: 22rem; left: -13rem; bottom: -10rem; }
.brand-mark { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 11px); align-items: end; gap: 5px; width: 54px; height: 54px; padding: 11px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.08); }
.brand-mark span { display: block; border-radius: 2px; background: #52b6f3; }
.brand-mark span:nth-child(1) { height: 14px; }
.brand-mark span:nth-child(2) { height: 25px; }
.brand-mark span:nth-child(3) { height: 19px; }
.brand-copy { position: relative; z-index: 1; max-width: 33rem; }
.brand-copy h1 { margin: .9rem 0 1.3rem; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.045em; }
.brand-copy p { max-width: 30rem; color: #c2d7e9; font-size: 1.08rem; line-height: 1.7; }
.security-note { position: relative; z-index: 1; display: flex; gap: .85rem; align-items: center; max-width: 31rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.06); }
.security-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 50%; color: #bdf7d0; background: rgba(34,197,94,.18); font-weight: 800; }
.security-note strong, .security-note span { display: block; }
.security-note div span { margin-top: .2rem; color: #b9cde0; font-size: .86rem; }
.login-form-panel { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(100%, 440px); }
.login-card header h2 { margin: .55rem 0; font-size: 2rem; letter-spacing: -.025em; }
.login-card header p { margin: 0 0 2rem; color: var(--slate-600); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .48rem; font-size: .82rem; font-weight: 750; color: #475569; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 54px; border: 1px solid var(--slate-300); border-radius: 11px; padding: 0 4.5rem 0 3.15rem; background: white; color: var(--slate-900); outline: none; transition: border-color .18s, box-shadow .18s; }
.input-wrap input:focus { border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(0,122,204,.12); }
#UserName { text-transform: uppercase; }
.input-icon { position: absolute; left: 1rem; top: 50%; z-index: 1; display: grid; width: 25px; height: 25px; place-items: center; transform: translateY(-50%); border-radius: 7px; color: var(--blue-600); background: var(--blue-100); font-size: .7rem; font-weight: 800; }
.password-toggle { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--blue-600); font-size: .78rem; font-weight: 750; }
.field-error { display: block; min-height: 1rem; margin-top: .35rem; color: var(--red-700); font-size: .78rem; }
.field-validation-valid { min-height: 0; margin: 0; }
.login-alert:empty { display: none; }
.login-alert { margin-bottom: 1.1rem; padding: .85rem 1rem; border: 1px solid #fecaca; border-radius: 10px; color: var(--red-700); background: #fff1f2; }
.login-alert ul { margin: 0; padding-left: 1.2rem; }
.login-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 55px; margin-top: .35rem; padding: 0 1.25rem; border: 0; border-radius: 11px; color: white; background: var(--blue-600); font-weight: 750; box-shadow: 0 12px 25px rgba(0,122,204,.22); }
.login-submit:hover { background: #0069b2; }
.login-card footer { display: flex; align-items: center; justify-content: center; gap: .45rem; margin-top: 1.7rem; color: var(--slate-600); font-size: .8rem; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand-panel { min-height: auto; padding: 2rem; }
  .brand-copy { margin: 3.5rem 0; }
  .brand-copy h1 { font-size: 3rem; }
  .login-form-panel { min-height: 640px; }
}
@media (max-width: 620px) {
  .login-form-panel { padding: 2rem 1.2rem; }
  .security-note { display: none; }
}
