:root {
  --ms-dark: #131921;
  --ms-orange: #F49C22;
  --ms-bg: #F8F8F6;
  --ms-border: #e5e7eb;
  font: 16px/1.5 system-ui, 'Segoe UI', sans-serif;
  color: var(--ms-dark);
  background: var(--ms-bg);
  color-scheme: light;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; padding: 32px; }
.login-layout { width: 100%; max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; background: white; border: 1px solid var(--ms-border); border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px #1319210a; }
.brand-panel { position: relative; min-height: 640px; display: flex; align-items: flex-end; padding: 40px; background: linear-gradient(180deg,#13192110 25%,#131921e6),url('/login-interior.png') 35% center / cover; }
.brand-message { position: relative; color: white; }
.brand-accent { display: block; width: 48px; height: 3px; background: var(--ms-orange); margin-bottom: 20px; }
.brand-message h2 { margin: 0; font-size: clamp(26px,3vw,34px); line-height: 1.25; letter-spacing: -.7px; }
.brand-message h2 span { font-weight: 400; }
.brand-message p { margin-top: 22px; font-size: 11px; letter-spacing: 2px; }
.login-content { min-width: 0; padding: 40px 48px; align-self: center; }
header { margin-bottom: 34px; }
.brand-logo { display: block; width: 210px; max-width: 100%; height: auto; object-fit: contain; }
header p { font-size: 12px; color: #6b7280; margin: 10px 0 0; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; margin: 0 0 10px; }
.intro { font-size: 14px; color: #6b7280; margin: 0 0 24px; }
label { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 8px; }
input { font: inherit; color: inherit; width: 100%; height: 46px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; background: white; }
input:focus-visible,button:focus-visible { outline: 2px solid var(--ms-orange); outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 76px; }
button { font: inherit; cursor: pointer; }
#toggle { position: absolute; right: 4px; top: 4px; min-width: 64px; height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--ms-dark); font-size: 13px; font-weight: 600; }
#toggle:hover { background: #fff3e2; }
#submit { width: 100%; min-height: 46px; border: 0; border-radius: 8px; background: var(--ms-dark); color: white; font-size: 15px; font-weight: 600; }
#submit:hover { background: #26313e; }
#submit:disabled { opacity: .65; cursor: wait; }
#error { font-size: 13px; color: #b42318; margin: 14px 0; min-height: 20px; }
footer { color: #6b7280; font-size: 12px; margin-top: 24px; }
@media(max-width:800px) {
  body { padding: 20px; }
  .login-content { padding: 32px; }
  .brand-panel { padding: 28px; }
}
@media(max-width:600px) {
  body { padding: 16px; }
  .login-layout { grid-template-columns: minmax(0,1fr); border-radius: 14px; }
  .brand-panel { min-height: 160px; padding: 24px; background-position: 35% 45%; }
  .brand-message h2 { font-size: 22px; }
  .brand-message p { display: none; }
  .brand-accent { margin-bottom: 12px; }
  .login-content { padding: 26px 22px; }
  header { margin-bottom: 26px; }
  .brand-logo { width: 180px; }
}
