/* FlashSync login page — served from /static/css, not inlined in the template. */
:root { --ink: #1e293b; --muted: #64748b; --brand: #2563eb; --brand-dark: #1d4ed8; --line: #e2e8f0; --danger-bg: #fef2f2; --danger-ink: #991b1b; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Trebuchet MS", sans-serif; color: var(--ink); min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: #0f1629;
  background-image: radial-gradient(at 20% 20%, rgba(37,99,235,.55) 0, transparent 55%), radial-gradient(at 80% 80%, rgba(124,58,237,.45) 0, transparent 55%), radial-gradient(at 70% 10%, rgba(14,165,233,.35) 0, transparent 50%);
}
.shell { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 860px; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #fff; }
.brand { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%); color: #fff; padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.brand::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; bottom: -140px; }
.brand-mark { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 1.4rem; margin-bottom: 1.25rem; }
.brand h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: .01em; }
.brand p { margin-top: .5rem; font-size: .9rem; opacity: .85; line-height: 1.5; }
.brand ul { list-style: none; margin-top: 2rem; display: grid; gap: .6rem; font-size: .85rem; opacity: .95; }
.brand li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); margin-right: .6rem; font-size: .7rem; }
.panel { padding: 2.75rem 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.panel h2 { font-size: 1.35rem; font-weight: 800; }
.panel .sub { color: var(--muted); font-size: .88rem; margin: .3rem 0 1.6rem; }
label { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin: 1rem 0 .35rem; }
.input { position: relative; }
.input span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .95rem; pointer-events: none; }
.pw-toggle { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); margin: 0; width: auto; padding: .35rem; border: 0; background: none; box-shadow: none; color: #94a3b8; display: inline-flex; cursor: pointer; }
.pw-toggle:hover { color: var(--ink); transform: translateY(-50%); box-shadow: none; }
.pw-toggle .eye-off, .pw-toggle.on .eye { display: none; }
.pw-toggle.on .eye-off { display: inline; }
#password { padding-right: 2.6rem; }
input::-ms-reveal, input::-ms-clear { display: none; }
input { width: 100%; padding: .7rem .85rem .7rem 2.3rem; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus { outline: none; background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
button { margin-top: 1.5rem; width: 100%; padding: .8rem; border: 0; border-radius: 10px; background: linear-gradient(90deg, var(--brand), #4f46e5); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 8px 20px rgba(37,99,235,.35); transition: transform .1s, box-shadow .15s; }
button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,.45); }
button:active { transform: translateY(0); }
.error { display: flex; gap: .5rem; align-items: center; background: var(--danger-bg); color: var(--danger-ink); border-left: 3px solid #ef4444; border-radius: 8px; padding: .65rem .8rem; font-size: .85rem; }
.foot { margin-top: 1.75rem; font-size: .75rem; color: #94a3b8; text-align: center; }
/* after the .brand/.panel rules so display:none wins the cascade */
@media (max-width: 720px) { .shell { grid-template-columns: 1fr; } .brand { display: none; } }
@media (max-width: 480px) { body { padding: 0.75rem; } .panel { padding: 1.75rem 1.25rem; } }
