/* Login-only styling keeps the operations workspace unchanged. */
#login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 24px;
  background: radial-gradient(ellipse at 10% 10%, #f6f8fc, transparent 60%), #e5e9f0;
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  width: min(1440px, 100%);
  min-height: min(860px, calc(100svh - 48px));
  padding: 12px;
  border: 1px solid white;
  border-radius: 26px;
  background: #f2f4f8;
  box-shadow: 0 24px 80px #253e6612, inset 0 0 0 1px #ffffff80;
}
.auth-access { display: flex; flex-direction: column; padding: 12px 32px 14px 20px; min-width: 0; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 102px; height: 68px; object-fit: contain; mix-blend-mode: multiply; }
.auth-brand > div { border-left: 1px solid #d5dce8; padding-left: 14px; }
.auth-brand b { display: block; font-size: 21px; color: #18283e; letter-spacing: -.5px; }
.auth-brand span { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1px; color: #536781; margin-top: 2px; }
.auth-access-badge { font-size: 9px; font-weight: 700; letter-spacing: .9px; color: #4d6485; background: #e6edf8; border: 1px solid #d6e2f4; border-radius: 20px; padding: 6px 9px; white-space: nowrap; }
.auth-form-area { width: min(370px, 100%); margin: auto; padding: 38px 0; }
.auth-welcome-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #dce4ee; background: linear-gradient(145deg, white, #e9eff7); color: #314b72; border-radius: 16px; box-shadow: 0 5px 14px #405a7d0a; margin-bottom: 20px; }
.auth-welcome-icon svg { width: 25px; height: 25px; }
#login h1 { font-size: clamp(30px, 2.7vw, 38px); line-height: 1.16; letter-spacing: -1.1px; font-weight: 700; color: #15253c; margin: 0 0 10px; }
#login .auth-intro { font-size: 15px; line-height: 1.55; color: #57677e; margin: 0 0 27px; }
#login #login-form { display: grid; gap: 0; margin: 0; }
#login #login-form label { font-size: 13px; color: #33475f; font-weight: 700; margin: 0 0 8px; }
.auth-input-wrap { position: relative; display: flex; align-items: center; margin-bottom: 19px; }
.auth-input-wrap > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: #7386a1; pointer-events: none; }
#login .auth-input-wrap input { display: block; width: 100%; border: 1px solid #d7dfeb; border-radius: 10px; background: #ffffffc9; padding: 14px 16px 14px 44px; min-height: 50px; margin: 0; font-size: 15px; color: #26394f; box-shadow: 0 2px 2px #1c395603; }
#login .auth-input-wrap input::placeholder { color: #7d8b9e; }
#login .auth-input-wrap input:focus { outline: 3px solid #2165de1c; border-color: #5589e1; background: white; }
#login #auth-password { padding-right: 66px; }
#auth-show-password { position: absolute; right: 8px; border: 0; background: transparent; color: #355c94; font-weight: 700; font-size: 12px; min-height: 36px; min-width: 48px; border-radius: 5px; padding: 6px; }
#auth-show-password:hover { background: #eaf1fc; }
#login .auth-submit { display: flex; align-items: center; justify-content: space-between; min-height: 51px; padding: 13px 18px; border-radius: 10px; font-size: 15px; font-weight: 700; background: linear-gradient(105deg, #2469e3, #1c58cc); box-shadow: 0 8px 19px #2165de26; border: 0; margin-top: 3px; }
#login .auth-submit:hover { background: #194fb9; }
.auth-submit span { font-size: 22px; font-weight: 400; }
#login .auth-access-help { font-size: 12px; color: #5b6d85; text-align: center; line-height: 1.6; margin-top: 20px; }
.auth-access-help b { color: #344d70; }
#login .auth-setup-note { font-size: 12px; line-height: 1.5; color: #805f2a; margin-top: 12px; overflow-wrap: anywhere; }
.auth-setup-note:empty { display: none; }
.auth-access-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #61718a; }
.auth-access-footer > span:last-child { display: flex; align-items: center; gap: 5px; }
.auth-access-footer svg { width: 14px; height: 14px; }
.auth-story { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; min-width: 0; border-radius: 19px; padding: 37px 38px 24px; background: linear-gradient(158deg, #fcfdff 4%, #eef3ff 35%, #c8d9ff 61%, #4d7aee 100%); border: 1px solid #ffffffd9; }
.auth-story::before { content: ''; position: absolute; z-index: -1; width: 430px; height: 430px; right: -230px; top: -180px; transform: rotate(38deg); border: 1px solid #b1c7ec70; border-radius: 65px; box-shadow: 0 0 0 44px #d0dcf033, 0 0 0 88px #d0dcf022, 0 0 0 132px #d0dcf015; }
.auth-story-copy { position: relative; z-index: 1; }
.auth-story-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #335f9d; margin-bottom: 17px; }
.auth-story-eyebrow > span { height: 6px; width: 6px; border-radius: 50%; background: #2865d8; box-shadow: 0 0 0 4px #2165de0c; }
#login .auth-story h2 { font-size: clamp(35px, 3.5vw, 51px); line-height: 1.08; letter-spacing: -1.5px; font-weight: 700; color: #1b2c45; margin: 0 0 16px; }
.auth-story h2 em { color: #2260d0; font-style: normal; }
#login .auth-story-copy > p { font-size: 15px; color: #4b6386; line-height: 1.6; max-width: 360px; margin: 0; }
.auth-flow { height: 190px; min-height: 160px; position: relative; margin: 15px -10px 10px; flex: 1; }
.auth-flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; stroke: #6c96e17a; stroke-width: 1.4; }
.auth-emblem { position: absolute; top: 16%; left: 36%; width: 136px; height: 110px; display: grid; place-items: center; border-radius: 23px; transform: rotate(-9deg); background: linear-gradient(145deg, #264e8b, #152d50); border: 1px solid #ffffffa1; box-shadow: 0 14px 0 -7px #386dc7, 0 26px 35px #2b5eb23b, inset 0 1px 0 #ffffff36; }
.auth-emblem img { width: 112px; height: 90px; object-fit: contain; }
.auth-flow-node { position: absolute; width: 77px; height: 70px; border: 1px solid #ffffffcb; background: #f4f8ffd9; border-radius: 17px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #3d68a7; box-shadow: 0 5px 16px #295bb514; transform: rotate(-5deg); }
.auth-flow-node svg { height: 34px; width: 34px; }
.auth-flow-node span { font-size: 9px; font-weight: 700; margin-top: 2px; }
.auth-node-collection { left: 6%; top: 48%; }
.auth-node-stock { right: 1%; top: 0; transform: rotate(8deg); }
.auth-node-sales { right: 5%; bottom: 0; transform: rotate(4deg); }
.auth-feature-stack { display: grid; gap: 10px; position: relative; z-index: 1; }
.auth-feature { display: flex; align-items: center; gap: 11px; padding: 15px 13px; background: #ffffff80; border: 1px solid #ffffff9c; border-radius: 14px; box-shadow: 0 4px 18px #2e59a20a; }
.auth-feature-icon { height: 35px; width: 35px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: #f8fbffb8; color: #285ba9; }
.auth-feature-icon svg { width: 20px; height: 20px; }
.auth-feature b { display: block; color: #244168; font-size: 13px; font-weight: 700; }
.auth-feature div > span { display: block; font-size: 11px; color: #44658f; margin-top: 3px; }
.auth-feature-tag { margin-left: auto; color: #3d649a; font-size: 8px; font-weight: 700; letter-spacing: .6px; }
.auth-story-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #f5f8ff; font-size: 10px; margin-top: 22px; }
.auth-story-footer > span:first-child { font-weight: 700; letter-spacing: 1.2px; }
@media (min-width: 1500px) {
  .auth-access { padding: 20px 40px 20px 28px; }
  .auth-form-area { width: 390px; }
  .auth-story { padding: 44px 48px 30px; }
  .auth-flow { min-height: 220px; }
}
@media (max-width: 1100px) {
  .auth-access { padding: 8px 25px 15px 13px; }
  .auth-access-badge { display: none; }
  .auth-story { padding: 31px 26px 22px; }
  .auth-feature-tag { display: none; }
  .auth-emblem { width: 115px; height: 100px; left: 32%; }
  .auth-emblem img { width: 96px; }
}
@media (max-width: 800px) {
  #login { padding: 12px; align-items: flex-start; }
  .auth-shell { grid-template-columns: 1fr; min-height: 0; max-width: 560px; padding: 8px; border-radius: 22px; }
  .auth-access { padding: 10px 20px 18px; }
  .auth-brand img { width: 90px; height: 60px; }
  .auth-brand b { font-size: 20px; }
  .auth-form-area { padding: 25px 0 30px; }
  #login h1 { font-size: 32px; }
  .auth-story { padding: 25px; }
  #login .auth-story h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.8px; }
  .auth-story h2 br { display: none; }
  #login .auth-story-copy > p { font-size: 14px; max-width: none; }
  .auth-flow, .auth-feature-stack, .auth-story-footer { display: none; }
  .auth-story-eyebrow { font-size: 9px; margin-bottom: 12px; }
  .auth-access-footer { font-size: 10px; }
}
@media (max-width: 380px) {
  .auth-access { padding-left: 12px; padding-right: 12px; }
  .auth-brand span { font-size: 8px; letter-spacing: .5px; }
}

.auth-emblem img { filter: drop-shadow(.35px 0 0 white) drop-shadow(-.35px 0 0 white) drop-shadow(0 .35px 0 white) drop-shadow(0 -.35px 0 white); }
@media (min-width: 801px) and (max-height: 780px) {
  #login { padding: 16px; }
  .auth-shell { min-height: calc(100svh - 32px); }
  .auth-story { padding-top: 25px; padding-bottom: 18px; }
  .auth-form-area { padding: 22px 0; }
  .auth-flow { min-height: 140px; margin-top: 10px; }
  .auth-story-footer { margin-top: 16px; }
}
