body {
    background: linear-gradient(135deg, #fc5c7d 0%, #6a82fb 100%);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-container {
    background: rgba(255,255,255,0.96);
    border-radius: 2rem;
    box-shadow: 0 8px 32px rgba(252,92,125,0.18);
    width: 100%;
    max-width: 420px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.7s;
}

.chat-header {
    background: linear-gradient(90deg, #fc5c7d, #6a82fb);
    color: #fff;
    padding: 1.5rem 1.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.chat-login, .chat-main {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#loginForm input, .chat-input input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 1.2rem;
    border: 1.5px solid #e0e7ff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    background: #f8fafc;
    color: #23272f;
    font-weight: 500;
}
#loginForm button, .chat-input button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 1.2rem;
    background: linear-gradient(90deg, #fc5c7d, #6a82fb);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(252,92,125,0.10);
}
#loginForm button:hover, .chat-input button:hover {
    background: linear-gradient(90deg, #6a82fb, #fc5c7d);
    transform: scale(1.05);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    border-radius: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    padding: 1rem 0.7rem;
    box-shadow: 0 2px 8px rgba(252,92,125,0.06);
    width: 100%;
}

.msg {
    margin-bottom: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    animation: fadeIn 0.4s;
}
.msg:last-child {
    border-bottom: none;
}
.msg-user {
    color: #fc5c7d;
    font-weight: 700;
    margin-right: 0.5rem;
}
.msg-time {
    color: #6a82fb;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}
.msg-text {
    color: #23272f;
    margin-top: 0.2rem;
    word-break: break-word;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}
.chat-input input {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    background: #fff;
    color: #23272f;
}
.chat-input button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.chat-input button:hover {
    background: linear-gradient(90deg, #764ba2, #667eea);
}

@media (max-width: 600px) {
    .chat-container {
        max-width: 100vw;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }
    .chat-main, .chat-login {
        padding: 1rem 0.5rem 1rem 0.5rem;
    }
    .chat-header {
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
} 