* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #020617, #0f172a, #1e1b4b);
    color: white;
    min-height: 100vh;
}

/* Auth Pages */

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    width: 420px;
    background: rgba(255, 255, 255, 0.08);
    padding: 35px;
    border-radius: 24px;
    backdrop-filter: blur(18px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.auth-card h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.auth-card p {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.auth-card input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 15px;
}

.auth-card input::placeholder {
    color: #94a3b8;
}

.auth-card button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.auth-card button:hover {
    transform: translateY(-2px);
}

.switch-link {
    text-align: center;
    margin-top: 20px;
}

.switch-link a {
    color: #a78bfa;
    text-decoration: none;
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* Chat Page */

.chat-wrapper {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(15, 23, 42, 0.95);
    padding: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.sidebar p {
    color: #cbd5e1;
}

.side-info {
    margin-top: 35px;
}

.side-info p {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.logout-btn {
    display: block;
    margin-top: 40px;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    background: #ef4444;
    color: white;
    text-decoration: none;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h1 {
    font-size: 26px;
}

.chat-header p {
    color: #cbd5e1;
    margin-top: 5px;
}

.chat-box {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.message {
    max-width: 70%;
    padding: 15px 18px;
    margin-bottom: 16px;
    border-radius: 20px;
    line-height: 1.5;
    white-space: pre-wrap;
    animation: pop 0.2s ease;
}

.user-msg {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.11);
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-form {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    background: rgba(15, 23, 42, 0.9);
}

.chat-form input {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    border: none;
    outline: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.chat-form input::placeholder {
    color: #94a3b8;
}

.chat-form button {
    padding: 0 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #22c55e, #14b8a6);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.chat-form button:hover {
    transform: translateY(-2px);
}

@keyframes pop {
    from {
        transform: scale(0.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .chat-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
    }

    .message {
        max-width: 90%;
    }
}