/* Visual design uses the user's sky palette and the Unslop approach by Damir Sokolovsky.
   https://github.com/heydamir/unslop · CC BY 4.0 */
:root { font: 15px/1.5 Arial, sans-serif; color: #17384e; color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, rgba(231,247,255,.25), rgba(225,244,255,.03) 66%), #c7e8f8 url('/login-sky.webp') center center / cover no-repeat;
  overflow-x: hidden;
}
body::before { content: ''; position: fixed; z-index: 0; left: -12%; right: -12%; bottom: -3%; height: 66vh; background: url('/login-clouds.webp') center bottom / 100% 100% no-repeat; opacity: .48; pointer-events: none; animation: cloud-drift 26s ease-in-out infinite alternate; }
@keyframes cloud-drift { from { transform: translate3d(-3%,0,0); } to { transform: translate3d(3%,0,0); } }
.login-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px; margin: 32px clamp(24px, 6vw, 96px) 0; width: max-content; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.9); border-radius: 12px; background: rgba(250,253,255,.8); color: #1c719e; font-size: 24px; font-weight: 700; box-shadow: 0 2px 12px rgba(19,70,96,.09); }
.brand-name { display: grid; line-height: 1.2; }
.brand-name strong { font-size: 16px; color: #153e56; }
.brand-name span { margin-top: 3px; color: #47778e; font-size: 11px; letter-spacing: .1em; }
.login-layout { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; width: 100%; max-width: 1600px; margin: 0 auto; padding: 36px clamp(24px, 6vw, 96px) 72px; }
.login-card { width: min(100%, 440px); padding: 36px; background: rgba(250,253,255,.88); border: 1px solid rgba(255,255,255,.96); border-radius: 20px; box-shadow: 0 16px 46px rgba(24,75,103,.14), inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card-header { display: flex; align-items: center; gap: 14px; }
.card-mark { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #b8deed; border-radius: 14px; background: #e8f6fc; color: #1878a7; }
.card-mark svg { width: 25px; height: 25px; }
.eyebrow { margin: 0 0 2px; color: #51768a; font-size: 12px; }
h1 { margin: 0; color: #153d56; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.login-description { margin: 20px 0 0; color: #547286; font-size: 14px; }
form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 7px; color: #274c62; font-size: 13px; font-weight: 600; }
input, button { font: inherit; }
input { width: 100%; min-height: 48px; border: 1px solid #bbd3df; border-radius: 8px; padding: 11px 14px; background: rgba(255,255,255,.95); color: #15384d; font-size: 16px; }
input:-webkit-autofill { -webkit-text-fill-color: #15384d; box-shadow: 0 0 0 1000px #f4fbff inset; }
input:focus-visible, button:focus-visible { outline: 3px solid #288dbd; outline-offset: 2px; }
button.primary { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; margin-top: 2px; border: 1px solid #11618b; border-radius: 8px; background: linear-gradient(180deg,#2890bc,#12658f); color: white; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.28), 0 3px 8px rgba(17,89,128,.16); }
button.primary:hover { background: linear-gradient(180deg,#237fa9,#0e587e); }
button.primary:disabled { opacity: .65; cursor: wait; }
button.primary span:last-child { font-size: 19px; line-height: 1; }
#error { margin: 0; color: #a72a2a; font-size: 13px; }
#error:empty { display: none; }
.card-footer { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #dbeaf0; color: #6a8797; font-size: 12px; }
@media (max-width: 600px) {
  body { background: #d5edf8 url('/login-sky.webp') center top / 100% auto no-repeat; }
  .login-brand { margin: 22px 20px 0; }
  .login-layout { align-items: flex-start; padding: clamp(100px, calc(56vw - 52px), 290px) 20px 36px; }
  .login-card { padding: 26px 22px; border-radius: 16px; background: rgba(250,253,255,.94); }
  .card-header { gap: 12px; }
  .card-mark { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
  h1 { font-size: 23px; }
  form { margin-top: 24px; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

.remember { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.remember input { width: 16px; height: 16px; margin: 0; accent-color: #0879b5; }
