/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Анимированный фон */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 77, 77, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(77, 124, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
    animation: pulse 15s infinite alternate;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4d4d, transparent);
    animation: slide 3s infinite;
}

@keyframes slide {
    0% { left: -100%; }
    100% { left: 100%; }
}

.logo-container {
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 4rem;
    color: #ff4d4d;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff4d4d, #ffcc00, #4d7cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 30px rgba(255, 77, 77, 0.5);
    margin-bottom: 5px;
}

.logo-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    letter-spacing: 2px;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(255, 77, 77, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.2);
}

.info-card i {
    color: #ff4d4d;
    font-size: 1.2rem;
}

/* Форма регистрации */
.registration-form {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.form-header h2 i {
    color: #ff4d4d;
}

.form-header p {
    color: #aaa;
    font-size: 1.1rem;
}

/* Группы ввода */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4d4d;
    font-size: 1.2rem;
}

.input-group input {
    width: 100%;
    padding: 18px 20px 18px 60px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ff4d4d;
    background: rgba(255, 77, 77, 0.05);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.2);
}

.input-hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    padding-left: 60px;
}

/* Чекбокс */
.terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.terms input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ff4d4d;
}

.terms label {
    color: #ccc;
    font-size: 0.95rem;
}

.link {
    color: #ff4d4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(45deg, #ff4d4d, #ff3333);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 77, 77, 0.3);
    background: linear-gradient(45deg, #ff3333, #ff4d4d);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.95rem;
}

/* Прогресс бар */
.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4d4d, #ffcc00);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: loading 2s infinite;
}

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

/* Сообщения */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.message.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.message.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 77, 77, 0.1);
    border-color: rgba(255, 77, 77, 0.4);
}

.stat-icon {
    font-size: 2.5rem;
    color: #ff4d4d;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 77, 0.1);
    border-radius: 50%;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff4d4d, #ffcc00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-label {
    color: #aaa;
    font-size: 1rem;
    margin-top: 5px;
}

/* Особенности */
.features {
    margin-bottom: 40px;
}

.features h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features h3 i {
    color: #ffcc00;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 77, 77, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 77, 77, 0.4);
    background: rgba(255, 77, 77, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4d7cff;
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 124, 255, 0.1);
    border-radius: 50%;
}

.feature h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Футер */
footer {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    padding: 30px;
    border-top: 1px solid rgba(255, 77, 77, 0.2);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #ff4d4d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff4d4d;
}

.footer-copyright {
    color: #888;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 2px solid rgba(255, 77, 77, 0.3);
    text-align: center;
    animation: slideUp 0.5s ease;
}

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

.modal-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #2ecc71;
}

.modal h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.modal p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.modal-instructions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.modal-instructions h4 {
    color: #ffcc00;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-instructions ol {
    padding-left: 20px;
    color: #aaa;
}

.modal-instructions li {
    margin-bottom: 10px;
}

.modal-instructions code {
    background: rgba(255, 77, 77, 0.1);
    padding: 3px 8px;
    border-radius: 5px;
    color: #ffcc00;
    font-family: monospace;
}

.modal-btn {
    background: linear-gradient(45deg, #ff4d4d, #ff3333);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 15px 40px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .registration-form {
        padding: 25px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}