/* auth.css - Уникальная тема "Космический неон" для страницы входа */

:root {
    --font-main: "Educational Gothic V2", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Уникальная цветовая схема - глубокий космос с неоновыми акцентами */
    --bg-primary: #030014;
    --bg-secondary: #0a0721;
    --bg-tertiary: #120b2e;
    --bg-card: rgba(10, 7, 33, 0.85);
    --text-primary: #ffffff;
    --text-secondary: #b8b8ff;
    --text-tertiary: #8a8ac9;
    --border-color: rgba(138, 138, 201, 0.2);
    
    /* Неоновые акценты */
    --neon-blue: #4a9eff;
    --neon-pink: #ff4a9e;
    --neon-purple: #b84aff;
    --neon-cyan: #4affb8;
    
    /* Градиенты */
    --accent-gradient: linear-gradient(135deg, #4a9eff, #b84aff, #ff4a9e);
    --neon-glow: 0 0 30px rgba(74, 158, 255, 0.5);
    
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* ==================== ЗВЁЗДЫ - КОСМИЧЕСКИЙ НЕОН ==================== */

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 40%, #120b2e 0%, #030014 100%);
}

/* Крупные звёзды с неоновым оттенком */
.star-large {
    position: absolute;
    background: white;
    border-radius: 50%;
    filter: blur(1px);
    animation: twinkleLarge 4s infinite ease-in-out;
    opacity: 0;
    box-shadow: 0 0 20px var(--neon-blue);
}

.star-large:nth-child(3n) {
    box-shadow: 0 0 20px var(--neon-pink);
}

.star-large:nth-child(5n) {
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Средние звёзды */
.star-medium {
    position: absolute;
    background: white;
    border-radius: 50%;
    filter: blur(0.5px);
    animation: twinkleMedium 3s infinite ease-in-out;
    opacity: 0;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Мелкие звёзды */
.star-small {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkleSmall 2s infinite ease-in-out;
    opacity: 0;
}

/* Неоновая туманность */
.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 158, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 74, 158, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(184, 74, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(74, 255, 184, 0.1) 0%, transparent 40%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes twinkleLarge {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3); 
    }
}

@keyframes twinkleMedium {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.7); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1); 
    }
}

@keyframes twinkleSmall {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.6); 
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1); 
    }
}

/* ==================== ОСНОВНОЙ КОНТЕЙНЕР ==================== */

.container {
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 2;
    animation: floatIn 0.8s ease-out;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== ЛОГОТИП JS - ЯРКИЙ И ЧЁТКИЙ ==================== */

.logo {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* Полностью убираем кольца */
.logo-ring,
.logo-ring-inner {
    display: none;
}

.logo-js {
    display: inline-block;
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    color: white;
    text-transform: uppercase;
    letter-spacing: -8px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: scale(1);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.logo-js span {
    display: inline-block;
    position: relative;
    text-shadow: 
        0 0 20px #4a9eff,
        0 0 40px #b84aff,
        0 0 60px #ff4a9e;
}

.logo-js span:first-child {
    margin-right: -15px;
    animation: glowJ 3s infinite alternate;
}

.logo-js span:last-child {
    margin-left: -15px;
    animation: glowS 3s infinite alternate;
}

@keyframes glowJ {
    0% {
        text-shadow: 0 0 20px #4a9eff, 0 0 40px #4a9eff;
    }
    100% {
        text-shadow: 0 0 30px #b84aff, 0 0 60px #ff4a9e, 0 0 90px #4a9eff;
    }
}

@keyframes glowS {
    0% {
        text-shadow: 0 0 20px #ff4a9e, 0 0 40px #ff4a9e;
    }
    100% {
        text-shadow: 0 0 30px #4a9eff, 0 0 60px #b84aff, 0 0 90px #ff4a9e;
    }
}

/* Добавляем белую подложку для четкости */
.logo-js::before {
    content: 'JS';
    position: absolute;
    top: 2px;
    left: 2px;
    right: -2px;
    bottom: -2px;
    color: rgba(255, 255, 255, 0.3);
    z-index: -1;
    letter-spacing: -8px;
    filter: blur(12px);
}

/* ==================== КАРТОЧКА ==================== */

.card {
    background: var(--bg-card);
    border-radius: 40px;
    padding: 50px 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Статичный неоновый фон карточки */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(74, 158, 255, 0.1) 0%, 
        rgba(184, 74, 255, 0.1) 50%, 
        rgba(255, 74, 158, 0.1) 100%);
    opacity: 0.3;
    z-index: 0;
}

.card > * {
    position: relative;
    z-index: 2;
}

/* Декоративные линии */
.card-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.card-lines::before,
.card-lines::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(74, 158, 255, 0.2);
    border-radius: 30px;
}

.card-lines::before {
    top: -40px;
    left: -40px;
    border-right: none;
    border-bottom: none;
}

.card-lines::after {
    bottom: -40px;
    right: -40px;
    border-left: none;
    border-top: none;
}

/* ==================== ЗАГОЛОВКИ ==================== */

h1 {
    font-size: 3.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 800;
    text-shadow: 
        0 0 20px #4a9eff,
        0 0 40px #b84aff;
    line-height: 1.2;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 20px;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a9eff, #b84aff, #ff4a9e);
    border-radius: 3px;
}

/* ==================== СТАТУС ПОЛЬЗОВАТЕЛЯ ==================== */

.user-status {
    background: rgba(10, 7, 33, 0.8);
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.user-status:hover {
    background: rgba(10, 7, 33, 0.8);
    border-color: rgba(74, 158, 255, 0.2);
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a9eff, #b84aff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.5);
    position: relative;
    animation: avatarGlow 3s infinite;
}

@keyframes avatarGlow {
    0%, 100% {
        box-shadow: 0 10px 30px #4a9eff;
    }
    50% {
        box-shadow: 0 10px 50px #ff4a9e;
    }
}

.user-avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9eff, #b84aff);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.user-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    letter-spacing: 1px;
}

.user-id {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(74, 158, 255, 0.2);
}

/* ==================== КНОПКИ ==================== */

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button-primary {
    background: linear-gradient(135deg, #4a9eff, #b84aff);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 158, 255, 0.4);
    position: relative;
    z-index: 1;
}

.button-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 74, 158, 0.6);
}

.button-primary:hover::after {
    opacity: 1;
}

.button-primary:active {
    transform: translateY(0);
}

.button-secondary {
    background: rgba(10, 7, 33, 0.8);
    color: white;
    border: 1px solid rgba(74, 158, 255, 0.3);
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    background: rgba(18, 11, 46, 0.9);
    border-color: #ff4a9e;
}

.button i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.button-primary:hover i {
    transform: translateX(5px);
}

/* ==================== ФУТЕР ==================== */

.footer {
    text-align: center;
    margin-top: 40px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    position: relative;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #4a9eff;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #4a9eff, #ff4a9e);
    transition: width 0.3s;
}

.footer a:hover {
    color: #ff4a9e;
}

.footer a:hover::after {
    width: 100%;
}

/* Версия */
.version {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(10, 7, 33, 0.8);
    border-radius: 30px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    font-size: 0.8rem;
    margin-top: 10px;
}

.version i {
    color: #4a9eff;
    margin-right: 5px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== АДАПТИВНОСТЬ ==================== */

@media (max-width: 768px) {
    .card {
        padding: 40px 30px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .logo-js {
        font-size: 7rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        border-radius: 30px;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .logo-js {
        font-size: 6rem;
        letter-spacing: -5px;
    }
    
    .logo-js span:first-child {
        margin-right: -10px;
    }
    
    .logo-js span:last-child {
        margin-left: -10px;
    }
    
    .user-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .user-name {
        font-size: 1.5rem;
    }
    
    .button {
        padding: 15px;
        font-size: 1rem;
    }
}