/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--login-bg);
}
.login-card {
  width: min(100%, 400px);
  background: var(--login-card-bg);
  border: 1px solid var(--login-border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-hover);
}
.login-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
}
.login-card .field {
  margin-top: 16px;
}
.login-card input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
}
.login-card button {
  width: 100%;
  margin-top: 22px;
}
.login-message {
  min-height: 22px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 14px;
}

.save-btn {
  background: var(--ok);
  color: #fff;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
}

/* Header */
header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 16px 4%;
  position: sticky;
  top: 0;
  z-index: 10;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
header h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}
header h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
}
header small {
  color: var(--sidebar-muted);
  font-size: 13px;
}

#appHeader {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
#appHeader:active {
  opacity: .7;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.sidebar-close:focus-visible,
.sidebar a:focus-visible,
.logout-btn:focus-visible {
  outline: 3px solid #75b7ea;
  outline-offset: 2px;
}

.logout-btn {
  display: block;
  width: 85%;
  margin: 20px auto;
  padding: 12px;
  background-color: var(--danger);
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background .3s;
  border: none;
  cursor: pointer;
  min-height: 44px;
}
.logout-btn:hover {
  background-color: #c0392b;
}
