@font-face {
    font-family: "JetBrains Mono";
    src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

html,
body {
  height: 100%;
}

body {
    font-family: system-ui, sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    background-color: #1e2228;
    color: #d8dee9;
    font-family: "JetBrains Mono", monospace;

    display: flex;
    flex-direction: column;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-container form {
    width: 100%;
    max-width: 400px;
}

.login-input {
    box-sizing: border-box;
    width: 100%;
    background-color: #1e2228;
    padding: 0.5rem;
    border-radius: 0.50rem;
    border: 2px solid #d8dee9;
    outline: none;
    color: #d8dee9;
    transition: border-color 0.25s ease;
    font-size: 1rem;
}

.login-error {
    border: 2px solid #bf616a;
}

.login-button {
    visibility: hidden;
}

button {
    background-color: #1e2228;
    color: #d8dee9;
    border: 1px solid #d8dee9;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-family: "JetBrains Mono", monospace;
}

.logout-button {
    color: #bf616a;
    border: 1px solid #bf616a;
}

.header-title {
    color: #8fbcbb
}

.message-container {
  flex: 1;
  min-height: 0;
  margin-bottom: 7%;
}

.message-container form {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.75rem;
}

.message-input,
.title-input,
.topic-input {
  width: 100%;
  font-size: 1rem;
  margin-top: 20px;
  padding: 8px;
  font-family: "JetBrains Mono", monospace;
  background-color: #1e2228;
  color: #d8dee9;
  border: 1px solid #d8dee9;
  border-radius: 0.25rem;
}

.message-input:focus,
.title-input:focus,
.topic-input:focus {
  outline: none;
  border-color: #81a1c1;
}

.send-button {
  color: #a3be8c;
  border: 1px solid #a3be8c;
  flex-shrink: 0;
}

.message-input {
  flex: 1;
  min-height: 0;
  resize: none;
  margin-bottom: 2rem;
}

.topic-input,
.title-input {
  flex-shrink: 0;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    padding: 0.75rem 1rem;
    border: 1px solid #a3be8c;
    border-radius: 0.25rem;
    background-color: #1e2228;
    color: #a3be8c;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
