/* Login cards */
.center-card {
    max-width: 400px;
    margin: 15vh auto;
    padding: 40px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.center-card h1 { font-size: 24px; margin-bottom: 8px; }
.center-card .subtitle { color: var(--text-light); margin-bottom: 24px; }

.center-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.center-card input { text-align: center; font-size: 18px; }

.error {
    color: var(--red);
    font-size: 13px;
    margin-top: 8px;
}

.link-btn {
    background: none;
    color: var(--primary);
    font-size: 13px;
    padding: 8px;
    margin-top: 12px;
}

.link-btn:hover { text-decoration: underline; }

/* Chat layout */
#chat {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card);
}

#chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

#chat-header h2 { font-size: 16px; }

/* Messages */
#messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg.assistant {
    align-self: flex-start;
    background: #f0f0f0;
    border-bottom-left-radius: 4px;
}

.msg.typing {
    align-self: flex-start;
    background: #f0f0f0;
    border-bottom-left-radius: 4px;
    color: var(--text-light);
    font-style: italic;
}

/* Chat input */
#chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

#chat-form input {
    flex: 1;
    border-radius: 20px;
    padding: 10px 16px;
}

#chat-form button {
    border-radius: 20px;
    padding: 10px 20px;
}
