body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
  background: radial-gradient(
    circle at center bottom,
    #0b1a33 10%,
    #1a2a4a 30%,
    #000000 100%
  );
  color: #e8e8e8;
  overflow: hidden;
}

.logo-text {
  position: absolute;
  top: 20px;
  right: 40px;
  font-weight: 900;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  pointer-events: none; 
  z-index: 10;
}

.logo-text span {
  color: #1c1c77; /*синий*/
}

/* Карточка (только для index.html) */
.card-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
}

.card {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(11, 26, 51, 0.6);
  width: 320px;
}

input {
  width: 100%;
  padding: 0.75rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  margin-bottom: 0.8rem;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Кнопка в форме входа (на всю ширину карточки) */
.card button {
  width: 100%;
  padding: 0.8rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card button:hover {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

#error {
  color: #ff6b6b;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

/* --- Стили для чата --- */
#chat-container {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  max-width: 70%;
  padding: 1rem;
  border-radius: 10px;
  line-height: 1.4;
  position: relative;
}

.msg.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.msg.bot {
  align-self: flex-start;
  background: rgba(30, 60, 90, 0.5);
  border: 1px solid rgba(0, 123, 255, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#input-area {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

#message {
  flex: 1;
  min-width: 0;
  padding: 0.8rem;
}

button.chat-action {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#send {
  background: #007bff;
  color: white;
}

#logout {
  background: #dc3545;
  color: white;
}

#send:hover {
  background: #005bb5;
}

#logout:hover {
  background:
