/* Sign Up Page Specific Styles */
/* Скрываем модальное меню для мобильных устройств на странице регистрации */

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 11, 25, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: linear-gradient(135deg, rgba(26, 22, 37, 0.9) 0%, rgba(42, 37, 55, 0.9) 100%);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 80px rgba(110, 86, 207, 0.2), 
                0 0 20px rgba(20, 241, 149, 0.2);
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.success-modal.show {
    transform: scale(1);
    opacity: 1;
}

.success-modal-content {
    position: relative;
    z-index: 2;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin: 24px 0 16px;
    background: linear-gradient(90deg, #14F195 0%, #9945FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-icon-container {
    margin: 0 auto;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-checkmark {
    transform-origin: center;
    animation: scaleIn 0.5s ease forwards;
}

.success-circle {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    transform-origin: center;
    animation: circleAnimation 1s ease-in-out forwards;
}

.success-check {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkAnimation 0.8s 0.5s ease-in-out forwards;
}

@keyframes circleAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-progress {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.success-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #14F195 0%, #9945FF 100%);
    transition: width 3s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    border-radius: 0;
    opacity: 0.7;
    animation: confetti-fall 3s linear infinite, confetti-shake 2s ease-in-out infinite;
}

@keyframes confetti-fall {
    0% {
        top: -10px;
        transform: rotate(0deg);
    }
    100% {
        top: 100%;
        transform: rotate(360deg);
    }
}

@keyframes confetti-shake {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateX(10px) rotate(270deg);
    }
    100% {
        transform: translateX(0) rotate(360deg);
    }
}

/* Light Theme Adjustments */
.light-theme .success-modal-overlay {
    background-color: rgba(255, 255, 255, 0.9);
}

.light-theme .success-modal {
    background: linear-gradient(135deg, rgba(245, 245, 247, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
                0 0 80px rgba(110, 86, 207, 0.1), 
                0 0 20px rgba(20, 241, 149, 0.1);
}

.light-theme .success-message {
    color: var(--text-secondary);
}
