/* Базовые сбросы и импорты */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ===== ЧАСТИЦЫ ФОН (index.php) ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== КАРТОЧКА АВТОРИЗАЦИИ ===== */
.auth-container {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.auth-card {
    position: relative;
    width: 420px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #4A90E2, #764ba2, #E74C3C, #4A90E2);
    background-size: 400% 400%;
    border-radius: 26px;
    z-index: -1;
    animation: gradientShift 6s ease infinite;
    opacity: 0.5;
    filter: blur(20px);
}

.card-content {
    background: rgba(15, 15, 20, 0.95);
    border-radius: 22px;
    padding: 40px 30px;
    text-align: center;
}

.logo-icon {
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

.title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
    font-size: 14px;
}

/* Кнопка VK */
.vk-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0077FF;
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vk-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.vk-btn:hover::before {
    left: 100%;
}

.vk-btn:hover {
    background: #0056CC;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 119, 255, 0.4);
}

.vk-icon {
    font-weight: bold;
    font-size: 20px;
}

.terms {
    margin-top: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== DASHBOARD ===== */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.profile-card {
    position: relative;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 50px 40px;
    width: 500px;
    text-align: center;
}

.profile-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #4A90E2, #764ba2, #E74C3C, #4A90E2);
    background-size: 400% 400%;
    border-radius: 26px;
    z-index: -1;
    animation: gradientShift 6s ease infinite;
    opacity: 0.4;
    filter: blur(30px);
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #4A90E2, #764ba2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.profile-nickname {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.role-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
    background: rgba(74, 144, 226, 0.2);
    color: #4A90E2;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.role-badge.admin {
    background: rgba(231, 76, 60, 0.2);
    color: #E74C3C;
    border-color: rgba(231, 76, 60, 0.3);
}

.role-badge.moderator {
    background: rgba(118, 75, 162, 0.2);
    color: #764ba2;
    border-color: rgba(118, 75, 162, 0.3);
}

.info-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.info-value {
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(231, 76, 60, 0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    box-shadow: 0 0 30px rgba(231, 76, 60, 0.3);
}