/* style.css's shared body rule already centers children horizontally (align-items: center) and
   stacks them top-down (flex-direction: column) - adding justify-content: center here as well
   centers #login-box vertically too, so the whole login mask sits dead-center of the viewport. */
body.login-page {
  justify-content: center;
}

body.login-page header {
  position: absolute;
  top: 0;
  left: 0;
}

#login-box {
  width: 100%;
  max-width: 320px;
  padding: 2rem 1.75rem;
  margin: 0 1.25rem;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  text-align: center;
}

#login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

#login-logo-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

#login-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #eee;
  line-height: 1;
}

#login-logo-text b {
  font-weight: bold;
  color: #888;
}

.discord-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  background: #5865f2;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.discord-login-btn:hover {
  background: #4752c4;
}

.discord-login-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #666;
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

#streamkey-login-form label {
  display: block;
  color: #999;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.login-key-row {
  display: flex;
  gap: 0.5rem;
}

.login-key-row input {
  flex: 1;
  min-width: 0;
  background: #000;
  border: 1px solid #333;
  border-radius: 3px;
  color: #eee;
  padding: 0.55rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.login-key-row button {
  flex-shrink: 0;
}
