:root {
  color-scheme: light;
  --ink: #182d43;
  --muted: #75899a;
  --blue: #2b609c;
  --blue-dark: #214f83;
  --cyan: #36aee0;
  --line: #dce8ef;
  --paper: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: #eef5f8;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(1080px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1fr .92fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(30, 73, 112, .07);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(37, 75, 105, .12);
}

.login-card { padding: 44px clamp(38px, 6vw, 76px) 28px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--blue); font: 800 16px 'Manrope', sans-serif; letter-spacing: -.45px; text-decoration: none; text-transform: uppercase; }
.brand b { color: var(--ink); font-weight: 700; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; }
.brand-mark svg { width: 30px; fill: #4bb9e4; stroke: #2b609c; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg path:last-child { fill: none; stroke: white; stroke-width: 2.5; }
.intro { margin: 65px 0 32px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 10px; line-height: 1.4; letter-spacing: 1.7px; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 9px; font: 700 34px/1.2 'Manrope', sans-serif; letter-spacing: -1.3px; }
.subheading { color: var(--muted); font-size: 14px; margin-bottom: 0; }
form { display: flex; flex-direction: column; }
label { color: #354a5d; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.input-wrap { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; transition: border-color .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: #76bbdd; box-shadow: 0 0 0 3px rgba(54, 174, 224, .12); }
.input-wrap > svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #92a5b4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 13px 'DM Sans', sans-serif; }
.input-wrap input::placeholder { color: #a2b0bb; }
.password-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.password-heading label { margin: 0 0 9px; }
.text-link { color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--blue-dark); text-decoration: underline; }
.show-password { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.show-password svg { width: 17px; fill: none; stroke: #92a5b4; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.remember { display: inline-flex; align-items: center; gap: 9px; width: fit-content; margin: 17px 0 21px; color: #697f90; font-size: 12px; font-weight: 400; cursor: pointer; }
.remember input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkmark { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #cbd9e3; border-radius: 4px; background: white; }
.remember input:checked + .checkmark { border-color: var(--blue); background: var(--blue); }
.remember input:checked + .checkmark::after { content: ''; width: 7px; height: 4px; border-left: 1.5px solid white; border-bottom: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.remember input:focus-visible + .checkmark { outline: 3px solid rgba(43, 96, 156, .2); }
.form-message { margin: 0 0 12px; color: #a53636; font-size: 12px; line-height: 1.5; }
.submit-button { height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 9px; background: var(--blue); color: white; font: 600 13px 'DM Sans', sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.submit-button:disabled { opacity: .72; cursor: wait; }
.submit-button span { font-size: 18px; line-height: 1; transition: transform .2s; }
.submit-button:hover { background: var(--blue-dark); }
.submit-button:hover span { transform: translateX(3px); }
.submit-button:focus-visible, .show-password:focus-visible, a:focus-visible { outline: 3px solid rgba(43,96,156,.25); outline-offset: 3px; }
.signup { margin: 22px 0 0; text-align: center; color: #8596a3; font-size: 12px; }
.signup .text-link { margin-left: 3px; }
.footer-note { margin: auto 0 0; padding-top: 36px; color: #71879a; font-size: 11px; text-align: center; }
.footer-note span { color: var(--cyan); margin-right: 5px; font-size: 9px; }
.footer-note strong { color: #385975; font-weight: 700; }

.visual-panel { position: relative; display: flex; flex-direction: column; min-height: 650px; overflow: hidden; padding: 30px 34px 24px; background: #e4f4fb; }
.visual-panel::before, .visual-panel::after { content: ''; position: absolute; border: 1px solid rgba(43, 96, 156, .10); border-radius: 50%; pointer-events: none; }
.visual-panel::before { width: 510px; height: 510px; top: 86px; left: 50%; transform: translateX(-50%); }
.visual-panel::after { width: 640px; height: 640px; top: 20px; left: 50%; transform: translateX(-50%); }
.visual-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #547a9a; font-size: 9px; letter-spacing: 1.4px; font-weight: 700; }
.visual-label { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.project-logo { width: 88px; height: 112px; flex: 0 0 auto; object-fit: contain; padding: 5px; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.82); box-shadow: 0 7px 20px rgba(37,82,118,.10); }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #39a7d7; box-shadow: 0 0 0 4px rgba(57,167,215,.13); }
.visual-copy { position: relative; z-index: 1; padding: 43px 4px 20px; }
.visual-copy .eyebrow { margin-bottom: 10px; color: #398ab8; }
.visual-copy h2 { margin-bottom: 10px; color: #214f83; font: 700 29px/1.18 'Manrope', sans-serif; letter-spacing: -.9px; }
.visual-copy > p:last-child { margin: 0; color: #63829b; font-size: 12px; line-height: 1.7; }
.project-photos { position: relative; z-index: 1; flex: 1; min-height: 275px; margin: 0 0 14px; }
.project-photos figure { position: absolute; margin: 0; overflow: hidden; border: 4px solid rgba(255,255,255,.85); border-radius: 15px; background: #d3e5ed; box-shadow: 0 14px 32px rgba(37, 82, 118, .16); }
.project-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-main { top: 0; left: 0; width: 76%; height: 185px; transform: rotate(-2deg); }
.photo-main img { object-position: center 62%; }
.photo-detail { right: 1%; bottom: 8px; width: 47%; height: 132px; transform: rotate(3deg); }
.photo-detail img { object-position: center; }
.project-photos figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 7px; padding: 9px 11px; background: linear-gradient(transparent, rgba(16, 39, 62, .78)); color: white; font-size: 10px; font-weight: 600; }
.photo-detail figcaption { padding: 8px 9px; font-size: 9px; }
.photo-dot { width: 6px; height: 6px; border-radius: 50%; background: #63d2f0; box-shadow: 0 0 0 3px rgba(99,210,240,.2); }
.water-status { position: absolute; z-index: 2; top: 137px; left: 7%; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(220,238,247,.9); border-radius: 11px; background: rgba(255,255,255,.95); box-shadow: 0 8px 25px rgba(30,73,112,.13); }
.status-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #e3f5fb; color: #2788bc; font-size: 20px; }
.water-status b, .water-status small { display: block; white-space: nowrap; }
.water-status b { color: #31536f; font-size: 10px; }
.water-status small { margin-top: 2px; color: #8199aa; font-size: 8px; }
.visual-bottom { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 10px 0 0; border-top: 1px solid rgba(52, 119, 161, .12); color: #7793a8; font-size: 9px; letter-spacing: .5px; }.progress { width: 43px; height: 2px; background: #c7dfeb; }.progress i { display: block; width: 17px; height: 2px; background: #3689bd; }.bottom-label { margin-left: auto; font-size: 8px; letter-spacing: 1.1px; }

@media (max-width: 760px) {
  body { padding: 18px; align-items: start; }
  .page { width: min(480px, 100%); min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
  .login-card { padding: 32px clamp(25px, 8vw, 44px) 24px; min-height: 600px; }
  .intro { margin-top: 52px; }
  .visual-panel { display: none; }
}

@media (max-width: 380px) {
  body { padding: 10px; }
  .login-card { padding-right: 23px; padding-left: 23px; }
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
