/* Log On screen. Self-contained: the main style.css is locked until the password is entered. */
:root {
  --face: #c0c0c0;
  --navy: #000080;
  --title2: #1084d0;
  --font: Tahoma, "MS Sans Serif", "Segoe UI", Geneva, Verdana, sans-serif;
  --out: inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --in: inset -1px -1px #fff, inset 1px 1px #808080, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  --pressed: inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px #808080;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.35 var(--font); color: #000; background: #008080; -webkit-font-smoothing: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.desktop { min-height: 100%; display: grid; place-items: center; padding: 16px; }

.window {
  width: 100%; max-width: 520px; margin: 0;
  background: var(--face); box-shadow: var(--out); padding: 3px;
  animation: pop .14s steps(3);
}
@keyframes pop { from { transform: scale(.85); opacity: .4; } }

.title-bar {
  height: 20px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 0 4px; font-weight: bold; color: #fff;
  background: linear-gradient(90deg, var(--navy), var(--title2));
}
.title-btn {
  width: 16px; height: 14px; padding: 0; border: 0; display: grid; place-items: center;
  background: var(--face); box-shadow: var(--out); color: #000; font: bold 10px/1 var(--font);
}
.title-btn:active { box-shadow: var(--pressed); }

.body {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px;
  padding: 18px 14px 16px 18px; align-items: start;
}
/* Pixel key icon */
.key {
  width: 32px; height: 32px; margin-top: 2px;
  background:
    radial-gradient(circle at 10px 10px, transparent 3px, #c9a400 3px 7px, #6b5500 7px 8px, transparent 8px),
    linear-gradient(#c9a400, #c9a400) 15px 12px / 16px 4px no-repeat,
    linear-gradient(#c9a400, #c9a400) 24px 16px / 3px 5px no-repeat,
    linear-gradient(#c9a400, #c9a400) 29px 16px / 3px 7px no-repeat;
  image-rendering: pixelated;
}

.prompt { margin: 2px 0 14px; }
.row { display: grid; grid-template-columns: 84px 1fr; align-items: center; margin-bottom: 10px; }
.row input {
  height: 23px; padding: 2px 4px; border: 0; background: #fff; box-shadow: var(--in); min-width: 0;
}
.row input:focus { outline: none; }
.row input[readonly] { background: var(--face); color: #444; }

.error { display: flex; gap: 8px; align-items: center; margin: 4px 0 0; }
.err-icon {
  flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: #e00000; color: #fff; font-weight: bold; font-size: 11px; box-shadow: 1px 1px #000;
}
.hint { margin: 8px 0 0; padding: 6px 8px; background: #ffffe1; box-shadow: inset 0 0 0 1px #000; }

.buttons { display: flex; flex-direction: column; gap: 8px; }
.btn { min-width: 84px; height: 25px; padding: 0 10px; border: 0; background: var(--face); box-shadow: var(--out); }
.btn.default { outline: 1px solid #000; }
.btn:active { box-shadow: var(--pressed); padding: 1px 9px 0 11px; }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }

@media (max-width: 480px) {
  .body { grid-template-columns: 1fr; padding: 14px; }
  .key { display: none; }
  .buttons { flex-direction: row; justify-content: flex-end; }
  .row { grid-template-columns: 76px 1fr; }
}
