﻿@font-face {
    font-family: 'MinecraftRus';
    src: url('assets/minecraft.ttf');
}

.progress-container {
    width: 220px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 25px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px #9d00ff;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff3c5f, #a700ff);
    transition: width 0.1s ease;
    border-radius: 10px;
}

.progress-text {
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
    font-family: 'MinecraftRus', sans-serif;
    text-shadow: 0 0 3px #000;
}


body, html {
    margin: 0;
    padding: 0;
    font-family: 'MinecraftRus', sans-serif;
    height: 100%;
    background: url('assets/bg.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

#preloader {
    position: fixed;
    inset: 0;
    background-color: #1a0033;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.6s ease; /* Добавляем плавность */
}
#loader-logo {
    width: 180px;
    animation: logoIntro 3s ease-in-out forwards;
    opacity: 0;
}

/* Анимация логотипа */
@keyframes logoIntro {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
        filter: blur(4px);
    }

    30% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
        filter: blur(0);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

form {
    width: 100%;
    max-width: 640px;
    margin: 60px auto;
    padding: 40px 35px;
    background: rgba(34, 0, 51, 0.6);
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(128, 0, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 0, 255, 0.3);
    animation: fadeIn 0.8s ease-in-out;
}

    form h1 {
        text-align: center;
        margin-bottom: 25px;
        font-size: 2rem;
        text-shadow: 2px 2px 0px #000;
        color: #e0b3ff;
    }

/* Labels & Inputs */
label {
    display: block;
    margin-top: 18px;
    margin-bottom: 5px;
    font-size: 0.95rem;
    color: #f5e8ff;
    text-shadow: 1px 1px 0px #000;
}

input[type="text"],
input[type="url"],
input[type="number"] {
    width: 95%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: inset 0 0 5px #420066;
    font-family: 'MinecraftRus', sans-serif;
}

    input[type="text"]:focus,
    input[type="url"]:focus,
    input[type="number"]:focus {
        border-color: #b266ff;
        background-color: rgba(255, 255, 255, 0.12);
        font-family: 'MinecraftRus', sans-serif;
    }

/* Groups */
.radio-group,
.checkbox-group {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

    .radio-group label,
    .checkbox-group label {
        background-color: rgba(100, 0, 150, 0.3);
        padding: 10px 15px;
        border-radius: 8px;
        cursor: pointer;
        border: 1px solid rgba(200, 0, 255, 0.3);
        transition: all 0.2s ease-in-out;
    }

        .radio-group label:hover,
        .checkbox-group label:hover {
            background-color: rgba(120, 0, 170, 0.5);
            border-color: rgba(255, 255, 255, 0.3);
        }

input[type="radio"],
input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #bb00ff;
    transform: scale(1.2);
    font-family: 'MinecraftRus', sans-serif;
}

/* Submit Button */
button[type="submit"] {
    width: 100%;
    margin-top: 30px;
    padding: 14px;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #a100ff, #5e00b8);
    border: none;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 0 15px rgba(180, 0, 255, 0.6);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    font-family: 'MinecraftRus', sans-serif;
}

    button[type="submit"]:hover {
        background: linear-gradient(135deg, #d580ff, #7d00ff);
        box-shadow: 0 0 25px rgba(200, 100, 255, 0.8);
        transform: scale(1.03);
        font-family: 'MinecraftRus', sans-serif;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    form {
        padding: 25px 20px;
        margin: 40px 20px;
        border-radius: 16px;
        box-shadow: 0 0 15px rgba(128, 0, 255, 0.4);
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }

        form h1 {
            font-size: 1.4rem;
            margin-bottom: 20px;
        }

    input[type="text"],
    input[type="url"],
    input[type="number"] {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    label {
        font-size: 0.9rem;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    button[type="submit"] {
        font-size: 1rem;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    form {
        margin: 30px 10px;
        padding: 20px;
    }

        form h1 {
            font-size: 1.2rem;
        }

    input,
    button {
        font-size: 0.9rem;
    }

        button[type="submit"] {
            padding: 10px;
        }
}

@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
    }

    #main-content {
        padding: 20px;
        box-sizing: border-box;
    }

    form {
        width: 100%;
        margin: 0 auto;
        padding: 25px 20px;
        border-radius: 14px;
        box-shadow: 0 0 10px rgba(128, 0, 255, 0.4);
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }

        form h1 {
            font-size: 1.25rem;
            margin-bottom: 20px;
            text-align: center;
        }

    input[type="text"],
    input[type="url"],
    input[type="number"],
    button {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }

    label {
        font-size: 0.9rem;
    }

    button[type="submit"] {
        font-size: 1rem;
        padding: 12px;
        margin-top: 20px;
    }
}

.badge {
    background: #ff3c5f;
    color: white;
    padding: 4px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 0 8px rgba(255, 60, 95, 0.9), 0 0 15px rgba(255, 60, 95, 0.6);
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

.form-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 60, 95, 0.9), 0 0 15px rgba(255, 60, 95, 0.6);
    }

    50% {
        box-shadow: 0 0 14px rgba(255, 80, 115, 1), 0 0 25px rgba(255, 80, 115, 0.9);
    }

    100% {
        box-shadow: 0 0 8px rgba(255, 60, 95, 0.9), 0 0 15px rgba(255, 60, 95, 0.6);
    }
}

@media (max-width: 480px) {
    .badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}

.success-toast {
    position: fixed;
    top: 20px;
    right: -400px;
    background: rgba(0, 180, 0, 0.9);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'MinecraftRus', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease;
}

    .success-toast.show {
        right: 20px;
        opacity: 1;
    }


/* Общий popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 20, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.popup-content {
    background: #2c003e;
    padding: 25px 30px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 20px #a100ff;
    font-family: 'MinecraftRus', sans-serif;
    animation: popupFade 0.3s ease;
}

    /* Кнопка */
    .popup-content button {
        margin-top: 15px;
        padding: 10px 20px;
        background-color: #7e00ff;
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .popup-content button:hover {
            background-color: #a060ff;
        }


@keyframes popupFade {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Toast error popup */
.error-toast {
    position: fixed;
    top: 20px;
    right: -400px; /* Скрыта за экраном */
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-family: 'MinecraftRus', sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transition: all 0.5s ease;
}

    /* Показать */
    .error-toast.show {
        right: 20px;
        opacity: 1;
    }

