:root {
  --ix9-bg: #050b18;
  --ix9-card: #0a1527;
  --ix9-line: #203a5b;
  --ix9-text: #eef7ff;
  --ix9-muted: #8197b0;
  --ix9-blue: #2f7df6;
  --ix9-cyan: #36d5ef;
  --ix9-green: #2dd4a3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
.ix9-login-page { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 15% 15%, rgba(47,125,246,.18), transparent 28%), radial-gradient(circle at 85% 82%, rgba(54,213,239,.10), transparent 28%), var(--ix9-bg); color: var(--ix9-text); font-family: Inter, Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }
.ix9-login-page::before { position: fixed; inset: 0; background-image: linear-gradient(rgba(96,150,215,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(96,150,215,.035) 1px, transparent 1px); background-size: 42px 42px; content: ""; pointer-events: none; mask-image: linear-gradient(to bottom, black, transparent); }
.ix9-login-shell { display: grid; min-height: 100vh; min-height: 100dvh; padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); place-items: center; }
.ix9-login-card { position: relative; width: min(440px, 100%); overflow: hidden; padding: 34px; border: 1px solid rgba(70,135,211,.45); border-radius: 24px; background: linear-gradient(145deg, rgba(13,30,54,.98), rgba(6,15,29,.98)); box-shadow: 0 35px 110px rgba(0,0,0,.6), 0 0 80px rgba(47,125,246,.09); }
.ix9-login-glow { position: absolute; top: -110px; right: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(47,125,246,.18); filter: blur(45px); pointer-events: none; }
.ix9-login-brand { position: relative; display: flex; gap: 13px; align-items: center; }
.ix9-login-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #397fd2; border-radius: 16px; background: linear-gradient(145deg,#123867,#101a3b); box-shadow: 0 0 26px rgba(47,125,246,.26); color: white; font-size: 25px; font-style: italic; font-weight: 800; }
.ix9-login-mark span { color: #4ca2ff; font-size: 15px; }
.ix9-login-brand div { display: grid; gap: 3px; }
.ix9-login-brand b { font-size: 17px; }
.ix9-login-brand small { color: var(--ix9-muted); font-size: 11px; }
.ix9-security-badge { position: relative; display: inline-flex; gap: 7px; align-items: center; margin-top: 24px; padding: 7px 10px; border: 1px solid rgba(45,212,163,.3); border-radius: 99px; background: rgba(45,212,163,.08); color: #82e5c4; font-size: 10px; font-weight: 700; }
.ix9-security-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ix9-green); box-shadow: 0 0 10px var(--ix9-green); }
.ix9-login-card header { position: relative; margin: 19px 0 24px; }
.ix9-login-card h1 { margin: 0; font-size: clamp(25px,7vw,34px); letter-spacing: -.04em; }
.ix9-login-card header p { margin: 9px 0 0; color: var(--ix9-muted); font-size: 13px; line-height: 1.6; }
#ix9LoginForm { position: relative; display: grid; gap: 16px; }
#ix9LoginForm > label:not(.ix9-remember) { display: grid; gap: 7px; }
#ix9LoginForm label > span { color: #c8d8e9; font-size: 11px; font-weight: 750; }
#ix9LoginForm input[type="text"], #ix9LoginForm input:not([type]) , #ix9LoginForm input[type="password"] { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #284665; border-radius: 12px; outline: 0; background: #06101e; color: white; font-size: 14px; transition: border .18s, box-shadow .18s; }
#ix9LoginForm input:focus { border-color: #4b9af4; box-shadow: 0 0 0 4px rgba(47,125,246,.13); }
.ix9-password-field { position: relative; }
.ix9-password-field input { padding-right: 72px!important; }
.ix9-password-field button { position: absolute; top: 7px; right: 7px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: #142842; color: #a9c4df; font-size: 10px; font-weight: 700; cursor: pointer; }
.ix9-caps-warning { min-height: 14px; color: #f7bd72; font-size: 10px; }
.ix9-remember { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.ix9-remember input { width: 17px; height: 17px; accent-color: var(--ix9-blue); }
.ix9-remember span { color: #a9bed2!important; font-size: 11px!important; font-weight: 600!important; }
.ix9-login-error { display: none; padding: 10px 12px; border: 1px solid rgba(255,99,127,.34); border-radius: 10px; background: rgba(255,73,106,.08); color: #ffb0bf; font-size: 11px; line-height: 1.45; }
.ix9-login-error.visible { display: block; }
.ix9-login-submit { display: flex; height: 52px; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid #61adff; border-radius: 12px; background: linear-gradient(110deg,#2f7df6,#435ed8); box-shadow: 0 16px 36px rgba(47,125,246,.25); color: white; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .18s, opacity .18s; }
.ix9-login-submit:hover { transform: translateY(-1px); }
.ix9-login-submit:disabled { cursor: wait; opacity: .65; transform: none; }
.ix9-login-submit i { font-size: 20px; font-style: normal; }
.ix9-login-card footer { display: flex; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(65,100,139,.28); color: #647c95; font-size: 9px; line-height: 1.5; }

.ix9-access-box { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.ix9-access-user { display: grid; gap: 1px; text-align: right; }
.ix9-access-user small { color: #6d869f; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.ix9-access-user b { max-width: 110px; overflow: hidden; color: #bcd4ea; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ix9-logout-button { min-height: 34px; padding: 7px 11px; border: 1px solid #314f70; border-radius: 9px; background: #0b1829; color: #a9c0d7; font-size: 9px; font-weight: 750; cursor: pointer; transition: .18s; }
.ix9-logout-button:hover { border-color: #557fa9; color: white; }

@media (max-width: 660px) {
  .ix9-login-card { padding: 25px 20px; border-radius: 20px; }
  .ix9-login-card header { margin-bottom: 20px; }
  .ix9-access-user { display: none; }
  .ix9-logout-button { width: 36px; padding: 0; font-size: 0; }
  .ix9-logout-button::before { content: "↪"; font-size: 16px; }
}

