Загрузка данных


:root {
    /* Цветовая палитра Aura */
    --bg-color: #050505;
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --success: #10b981;
    --danger: #f43f5e;
    --glow: 0 0 20px rgba(99, 102, 241, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #312e81, #020617);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимация переливания фона */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Эффект матового стекла для всех панелей */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* --- Стили для форм входа/регистрации/профиля --- */
.form-container {
    padding: 40px;
    border-radius: 24px;
    width: 380px;
    margin-top: 12vh;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.6), var(--glow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

/* --- Премиальные кнопки --- */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
}

/* --- Ссылки --- */
.link-text {
    text-align: center;
    font-size: 14px;
    margin-top: 25px;
    color: var(--text-muted);
}

.link-text a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-text a:hover {
    color: var(--accent-3);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

/* --- Главная страница --- */
.navbar {
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-menu span {
    font-weight: 500;
    color: var(--text-main);
}

.main-content {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Панели с контентом */
.tasks-box {
    padding: 30px;
    border-radius: 20px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.tasks-box h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
}

/* Форма добавления задачи */
.task-form {
    display: flex;
    gap: 15px;
}

.task-form input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.task-form input:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-1);
}

.task-form .btn {
    width: auto;
    padding: 0 30px;
    margin: 0;
}

/* Список задач */
.task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.task-text {
    font-size: 16px;
    transition: all 0.3s ease;
}

.task-text.done {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: var(--success);
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.1);
    color: var(--danger);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.btn-danger:hover {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

/* Токен-блок */
.token-display {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 5px;
    margin: 20px 0;
    color: #fff;
    text-shadow: 0 0 10px var(--success), 0 0 20px var(--success);
    animation: pulseText 2s infinite;
}

@keyframes pulseText {
    0% { text-shadow: 0 0 10px var(--success), 0 0 20px var(--success); }
    50% { text-shadow: 0 0 15px var(--success), 0 0 30px var(--success), 0 0 40px var(--success); }
    100% { text-shadow: 0 0 10px var(--success), 0 0 20px var(--success); }
}

.token-box form .btn {
    width: 50%;
    margin: 0 auto;
    display: block;
}