/* Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Logo */
.logo {
  max-height: 300px;
  width: auto;
  display: block;
  margin: 0 auto 2rem auto;
}

.logo-header {
  max-height: 100px;
  width: auto;
  display: block;
}

.logo-container {
  text-align: center;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Container */
.container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

/* Chat Container */
.chat-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 700px;
}

/* Headers */
.header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border-bottom: 3px solid #4338ca;
}

.header h1 { font-size: 1.8rem; font-weight: 700; }

.header-info { font-size: 0.9rem; opacity: 0.9; }
.header-info a { color: white; text-decoration: underline; cursor: pointer; }

.subtitle { font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }

/* Auth Page Headers */
.auth-header h1 { 
  text-align: center; 
  color: #667eea;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header .subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Chat Area */
#chat { 
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  background: #f8fafc;
}

/* Messages */
.msg { 
  margin: 0.75rem 0; 
  padding: 1rem 1.25rem; 
  border-radius: 18px;
  max-width: 80%;
  line-height: 1.5;
  word-wrap: break-word;
}

.user { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-left: auto;
}

.bot { 
  background: white;
  border: 2px solid #e2e8f0;
  color: #1e293b;
}

/* Input Area */
.input-area {
  padding: 1.5rem;
  background: white;
  border-top: 1px solid #e2e8f0;
}

/* Forms */
form { display: flex; gap: 0.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

/* Labels */
label { 
  font-weight: 600; 
  color: #334155;
  font-size: 0.9rem;
}

/* Inputs */
input[type=text], 
input[type=email], 
input[type=password] { 
  padding: 1rem; 
  border-radius: 12px; 
  border: 2px solid #e2e8f0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

input[type=text]:focus, 
input[type=email]:focus, 
input[type=password]:focus { border-color: #667eea; }

input[type=text]:flex { flex: 1; }

/* Buttons */
button { 
  padding: 1rem 2rem; 
  border-radius: 25px; 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-button {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); }
button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Messages */
.error { color: #dc2626; text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.success { color: #16a34a; text-align: center; margin-top: 1rem; font-size: 0.9rem; }

/* Links */
.link { text-align: center; margin-top: 1.5rem; }
a { color: #667eea; text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }

/* Landing Page */
.landing-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 850px;
  padding: 2rem;
  text-align: center;
}

.landing-title {
  color: #667eea;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.landing-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  text-align: left;
}

.feature-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.feature-card h3 {
  color: #667eea;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
}

.cta-button {
  padding: 1rem 3rem;
  font-size: 1.1rem;
  margin: 1rem 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .chat-container { height: 100vh; max-height: none; border-radius: 0; }
  .header { padding: 1rem 1.25rem; }
  .header h1 { font-size: 1.5rem; }
  .msg { max-width: 90%; }
}

@media (max-width: 480px) {
  .container { padding: 2rem 1.5rem; }
  .auth-header h1 { font-size: 1.75rem; }
  .landing-container { padding: 2rem 1.5rem; }
  .landing-title { font-size: 2rem; }
  .landing-subtitle { font-size: 1rem; }
  .landing-features { grid-template-columns: 1fr; }
  .cta-button { padding: 1rem 2rem; font-size: 1rem; }
}
