:root { color-scheme: dark; font-family: system-ui, sans-serif; color: #fff1dc; background: #16120f; }
* { box-sizing: border-box; }
body { margin: 0; }
.login-layout { position: relative; isolation: isolate; display: grid; align-items: center; justify-items: end; min-height: 100svh; padding: clamp(24px, 7vw, 112px); }
.login-picture { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: 32% center; }
.login-panel { width: min(100%, 390px); padding: clamp(22px, 4vw, 38px); border: 1px solid #9f714b; border-radius: 18px; background: #1e1814f5; box-shadow: 0 16px 60px #0008, inset 0 1px #ffce9a38; }
.login-panel h1 { margin: 0 0 12px; }
.login-panel h1 img { display: block; width: min(100%, 230px); height: auto; }
.login-panel p { margin: 0 0 24px; color: #e1c8b1; }
.login-form { display: grid; gap: 8px; }
.login-form label { font-weight: 600; font-size: .9rem; }
.login-form input, .login-form button { width: 100%; min-height: 46px; border: 1px solid #80634e; border-radius: 8px; font: inherit; }
.login-form input { background: #15110f; color: #fff1dc; padding: 10px 12px; margin-bottom: 9px; }
.login-form button { background: #ffc08a; color: #251509; font-weight: 700; cursor: pointer; margin-top: 4px; }
.login-form button:hover { background: #ffd3ad; }
.login-form :focus-visible { outline: 2px solid #ffbe80; outline-offset: 4px; }
.login-form .login-error { margin: 0; color: #ffc3b9; font-size: .9rem; }
@media (max-width: 720px) {
  .login-layout { align-content: start; justify-items: center; min-height: 100svh; padding: 0 16px 24px; }
  .login-picture { position: relative; grid-row: 1; width: calc(100% + 32px); height: clamp(220px, 44svh, 370px); object-position: left 47%; }
  .login-panel { position: relative; grid-row: 2; margin-top: -22px; }
}
