@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

:root {
    /* Палитра современной темной темы */
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --component-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary: #9d4edd;
    --primary-hover: #7b2cbf;
    --secondary: #00b4d8;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    
    --msg-sent-bg: linear-gradient(135deg, #7b2cbf, #9d4edd);
    --msg-received-bg: rgba(60, 60, 60, 0.6);
    
    --input-bg: rgba(0, 0, 0, 0.3);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
/* Контейнер стекломорфизма */
.auth-container, .app-layout {
    background: #1e1e1e;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 1100px;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    overflow: hidden;
    height: 85vh;
}

.auth-container {
    padding: 3rem 2rem;
    max-width: 420px;
    display: block;
    height: auto;
    text-align: center;
}

.auth-container h2 {
    margin: 0 0 2rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: transparent;
    box-shadow: none; /* Сброс */
    border: none;
    border-radius: 0;
    padding: 0;
}

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



body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* Animated particles */
.particles {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.particle {
	position: absolute;
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	animation: float 20s infinite;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0) translateX(0) scale(1);
		opacity: 0;
	}

	10% {
		opacity: 0.8;
	}

	90% {
		opacity: 0.8;
	}

	100% {
		transform: translateY(-100vh) translateX(100px) scale(0.5);
		opacity: 0;
	}
}

.auth-container {
	position: relative;
	z-index: 10;
	backdrop-filter: blur(10px);
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

button, a {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s;
	text-decoration: none;
}