:root {
  --ink: #17243a;
  --muted: #748198;
  --line: rgba(33,69,111,.13);
  --blue: #3475e8;
  --navy: #15355d;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 82% 12%, rgba(124,186,255,.28), transparent 27%),
    radial-gradient(circle at 22% 84%, rgba(255,193,158,.2), transparent 26%),
    linear-gradient(145deg, #f8f4ec, #eef5fd 56%, #fbf4e9);
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-shell {
  width: min(1200px, calc(100vw - 48px));
  min-height: 740px;
  margin: max(24px, 4vh) auto;
  border: 1px solid rgba(38,73,116,.10);
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, .88fr);
  background: rgba(255,253,249,.82);
  box-shadow: 0 38px 100px rgba(26,54,92,.16);
}
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 44px 50px 34px;
  overflow: hidden;
  color: #f7fbff;
  background:
    radial-gradient(circle at 82% 14%, rgba(102,165,246,.34), transparent 28%),
    radial-gradient(circle at 16% 92%, rgba(255,188,151,.16), transparent 28%),
    linear-gradient(155deg, #1b436f, var(--navy) 55%, #0b294b);
}
.brand-panel:before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -20px;
  width: 390px;
  height: 390px;
  background: url('/assets/admin-mascot.webp') center/contain no-repeat;
  opacity: .25;
  filter: saturate(.8) drop-shadow(0 30px 40px rgba(0,0,0,.18));
}
.brand-panel:after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: 120px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
}
.brand-top { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.brand-logo, .mobile-brand span {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #dceaff;
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.brand-logo img, .mobile-brand img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-top b { display: block; font-size: 19px; letter-spacing: .5px; }
.brand-top span { display: block; color: rgba(220,236,255,.62); font-size: 9px; letter-spacing: 1.5px; margin-top: 3px; }
.brand-copy { position: relative; z-index: 1; margin-top: 88px; max-width: 560px; }
.eyebrow { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(232,244,255,.9); font-size: 10px; font-weight: 750; border: 1px solid rgba(255,255,255,.1); letter-spacing: .5px; }
.brand-copy h1 { margin: 19px 0 14px; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.2; letter-spacing: -1.2px; }
.brand-copy p { margin: 0; max-width: 520px; color: rgba(222,237,255,.66); font-size: 14px; line-height: 1.85; }
.feature-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 50px; max-width: 620px; }
.feature-grid div { padding: 15px 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(236,246,255,.07); border-radius: 16px; backdrop-filter: blur(10px); }
.feature-grid i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: rgba(255,255,255,.11); color: #fff; font-style: normal; font-weight: 850; }
.feature-grid b { display: block; margin-top: 9px; font-size: 12px; color: #fff; }
.feature-grid span { display: block; margin-top: 4px; color: rgba(220,236,255,.56); font-size: 9px; line-height: 1.6; }
.brand-panel footer { position: relative; z-index: 1; margin-top: auto; color: rgba(219,235,255,.42); font-size: 9px; letter-spacing: .3px; }

.login-panel {
  display: grid;
  place-items: center;
  padding: 46px 52px;
  background:
    radial-gradient(circle at 86% 12%, rgba(225,239,255,.75), transparent 34%),
    rgba(255,253,249,.9);
}
.login-card { width: min(400px, 100%); }
.mobile-brand { display: none; }
.secure { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; color: #15865e; background: #e8f8f1; font-size: 9px; font-weight: 750; border: 1px solid #d2f0e3; }
.secure i { width: 7px; height: 7px; border-radius: 50%; background: #1da875; box-shadow: 0 0 0 4px rgba(29,168,117,.10); }
.card-heading h2 { margin: 22px 0 5px; font-size: 31px; letter-spacing: -.8px; }
.card-heading p { margin: 0 0 30px; color: var(--muted); font-size: 12px; }
.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 8px; color: #5b6980; font-size: 11px; font-weight: 750; }
.field-box { display: flex; align-items: center; height: 52px; padding: 0 13px; border-radius: 14px; border: 1px solid var(--line); background: rgba(248,251,255,.85); transition: .2s; }
.field-box:focus-within { border-color: rgba(52,117,232,.52); background: #fff; box-shadow: 0 0 0 4px rgba(52,117,232,.09); }
.field-box i { width: 27px; color: #94a4ba; font-style: normal; }
.field-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.field-box input::placeholder { color: #acb7c7; }
.field-box button { border: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 750; cursor: pointer; }
.form-row { display: flex; justify-content: space-between; margin: 14px 1px 0; color: #8b98ab; font-size: 10px; }
.form-row a { color: var(--blue); }
.login-error { min-height: 20px; margin-top: 9px; color: #c84450; font-size: 11px; text-align: center; }
.login-submit { width: 100%; height: 52px; border: 0; border-radius: 14px; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; background: linear-gradient(135deg, #4383ee, #2864cc); box-shadow: 0 14px 28px rgba(45,108,216,.25); transition: .2s; }
.login-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(45,108,216,.30); }
.login-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.secure-note { margin: 18px 0 0; color: #98a4b6; font-size: 9px; line-height: 1.7; text-align: center; }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; width: min(500px, calc(100vw - 24px)); min-height: 0; margin: 12px auto; border-radius: 24px; }
  .brand-panel { display: none; }
  .login-panel { padding: 36px 28px 32px; }
  .mobile-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 32px; }
  .mobile-brand span { width: 42px; height: 42px; border-radius: 13px; }
  .mobile-brand b { font-size: 16px; }
}
