.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 56px);
  background:
    radial-gradient(58% 46% at 50% -4%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    radial-gradient(50% 50% at 92% 100%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg);
}

.login-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(960px, 100%);
  min-height: 560px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 64px rgb(0 0 0 / .5);
  animation: split-in .5s ease both;
}
@keyframes split-in {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 20% 15%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 72%),
    radial-gradient(80% 80% at 90% 90%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    var(--panel-2);
  background-size: cover;
  background-position: center;
}
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 90%, transparent), transparent 66%); }
.banner-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.banner-tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.banner h2 { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.banner p { font-size: 13px; line-height: 1.55; color: var(--text); opacity: .78; }

.form-side { display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; background: var(--panel); }
.form-box { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.form-box > .lockup { align-self: center; align-items: center; margin-bottom: 10px; }
.form-box > h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.form-box > p.muted { margin-top: -8px; margin-bottom: 8px; font-size: 13px; line-height: 1.55; text-align: center; }

.input-wrap { position: relative; display: block; }
.input-wrap .fic { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 42px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.eye-toggle { position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(-50%); color: var(--muted); }
.eye-toggle:hover { color: var(--text); }
.eye-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.form-row label { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); }
.form-row input { accent-color: var(--accent); width: 15px; height: 15px; }
.text-link { color: var(--accent); font-size: 13px; font-weight: 500; align-self: center; }
.form-box .btn.wide { min-height: 48px; border-radius: 12px; font-size: 14px; letter-spacing: .06em; }
.msg-error, .msg-ok { padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.msg-error { background: color-mix(in srgb, var(--bad) 16%, var(--bg)); color: var(--bad); }
.msg-ok { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: var(--accent); }
.hint { font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }
.demo-box { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.demo-box button { text-align: left; color: var(--accent); font-size: 12px; }

@media (max-width: 700px) {
  .login-split { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .banner { min-height: 200px; padding: 24px; }
  .banner h2 { font-size: 20px; }
  .form-side { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .login-wrap { display: block; padding: 0; }
  .login-split { width: 100%; min-height: 100dvh; grid-template-rows: auto 1fr; border: 0; border-radius: 0; box-shadow: none; }
  .banner { min-height: 130px; max-height: 155px; padding: 16px 20px 18px; }
  .banner h2 { font-size: 16px; line-height: 1.3; }
  .banner p { display: none; }
  .form-side { justify-content: flex-start; padding: 20px 20px max(24px, env(safe-area-inset-bottom)); }
}
