html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: Tahoma, sans-serif;
  user-select: none;
}

/* Login screen */

#login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(#0a246a, #3a6ea5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#login-box {
  background: #ece9d8;
  padding: 20px;
  width: 260px;
  border: 2px solid #0831d9;
  text-align: center;
}

#login-box input {
  width: 100%;
  padding: 6px;
  margin-bottom: 8px;
  box-sizing: border-box;
}

#login-box button {
  width: 100%;
  padding: 6px;
}

#login-error {
  color: red;
  font-size: 12px;
}

/* Desktop */

#desktop {
  width: 100%;
  height: 100%;
  background: #004e98;
  position: relative;
}

.icon {
  width: 72px;
  margin: 12px;
  text-align: center;
  cursor: default;
}

.icon span {
  display: block;
  font-size: 12px;
  background: white;
  margin-top: 4px;
}

.icon-box {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  background: #c0c0c0;
  border: 1px solid #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 16px;
}

/* Windows */

.window {
  position: absolute;
  width: 420px;
  height: 300px;
  background: #ece9d8;
  border: 2px solid #0831d9;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
}

.title-bar {
  height: 28px;
  background: linear-gradient(#0a246a, #3a6ea5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  cursor: move;
}

.title-bar button {
  width: 20px;
  height: 20px;
  background: #c0c0c0;
  border: 1px solid #404040;
  cursor: pointer;
}

.window-content {
  height: calc(100% - 28px);
  background: white;
}

/* Terminal */

.terminal {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: monospace;
  font-size: 14px;
}

.terminal .output {
  flex: 1;
  background: black;
  color: lime;
  padding: 4px;
  overflow-y: auto;
}

.terminal-input {
  border: none;
  outline: none;
  padding: 4px;
  font-family: monospace;
}
