body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background-color: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
/* ===== LOGIN SCREEN ===== */

#login-screen {
  position: fixed;
  inset: 0;
  background: #000;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  font-family: "Inter", sans-serif;
}

#login-screen h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

#login-screen p {
  opacity: 0.8;
  font-size: 0.95rem;
}

.intro-text {
  text-align: center;
  max-width: 420px;
  margin: 0 auto 1rem;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-label {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 360px;
}

.login-option {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
  text-transform: capitalize;
  font-weight: 600;
}

.login-option:hover,
.login-option:focus {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

#emailInput {
  padding: 10px;
  width: 250px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  text-align: center;
}

#loginBtn {
  padding: 10px 20px;
  border: none;
  background: #444;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  align-items: center; /* centers the button under the input */
}

#loginBtn:hover {
  background: #111;
}

/* ===== LOGO AT BOTTOM ===== */
.logo-container {
  position: fixed;
  bottom: 20px; /* distance from bottom */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  text-align: center;
  width: 100%;
}

.logo {
  display: inline-block;
  width: 200px;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 90vw;
  height: 80vh;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}

.avatar {
  width: 95%;
  height: 95%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  bottom: none;
}

.avatar video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatbox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  flex-direction: column;
  max-height: 70vh;
}

.message {
  margin: 0.5rem 0;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  max-width: 80%;
  font-family: monospace;
  overflow: hidden;
  word-break: break-word;
}

/* User messages */
.user {
  background-color: transparent;
  align-self: flex-end;
}

/* Bot messages with typing effect */
.bot {
  background-color: transparent;
  align-self: flex-start;
  overflow: hidden; /* hide the text until “typed” */
  /* animation: typing 3s steps(40, end), blink .7s step-end infinite; */
}

/* Typing animation
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
} */

.avatar.intro #talking-video, .avatar.intro #idle-video
{
  display: none;
}

.avatar.idle #intro-video, .avatar.idle #talking-video
{
  display: none;
}

.avatar.talking #intro-video, .avatar.talking #idle-video
{
  display: none;
}


/* Cursor blink */
@keyframes blink {
  50% { border-color: transparent; }
}

.input-area {
  display: flex;
}

input {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

button {
  background: transparent;
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}
