/* Login Page Styles */
.login-section {
    min-height: calc(100vh - 80px);
    padding: 4rem 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.login-card {
    background: var(--bg);
    border: 1px solid var(--text);
    padding: 3rem 2.5rem;
    text-align: center;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.login-card > p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Google Sign-In button container */
#g_id_onload {
    margin-bottom: 1.5rem;
}

.g_id_signin {
    width: 100%;
    display: flex;
    justify-content: center;
}

.google-signin-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--text);
    color: var(--text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.google-signin-btn:hover {
    background: var(--bg-light);
    border-color: var(--text);
}

.google-signin-btn svg {
    flex-shrink: 0;
}

.login-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Chat Container */
.chat-container {
    background: var(--bg);
    border: 1px solid var(--text);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: 800px;
}

.chat-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}

.chat-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--text);
    color: var(--text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--bg-light);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    max-width: 80%;
}

.user-message {
    align-self: flex-end;
    margin-left: auto;
}

.ai-message {
    align-self: flex-start;
}

.message-content {
    padding: 0.875rem 1.125rem;
    border: 1px solid var(--text);
    background: var(--bg);
}

.user-message .message-content {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.message-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
}

.user-message .message-content p {
    color: var(--bg);
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-input-container {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--text);
    background: var(--bg);
}

#chatForm {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--text);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9375rem;
    font-family: inherit;
}

#chatInput:focus {
    outline: none;
    border-color: var(--text);
}

.send-btn {
    padding: 0.875rem;
    background: var(--text);
    color: var(--bg);
    border: 1px solid var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    background: var(--primary-light);
    color: var(--bg);
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .login-section {
        padding: 2rem 0;
        min-height: calc(100vh - 60px);
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-card h1 {
        font-size: 1.5rem;
    }
    
    .chat-container {
        height: calc(100vh - 100px);
    }
    
    .message {
        max-width: 85%;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h2 {
        font-size: 1.125rem;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 1rem;
    }
}

