/* Enhanced Success Message Styles */

/* Main container styling */
.success-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4B0082 0%, #8A2BE2 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.success-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50l30-30M50 50l-30 30M50 50l30 30M50 50l-30-30' stroke='%23ffffff' stroke-width='1' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.2;
    pointer-events: none;
}

/* Success header styling */
.success-header {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    z-index: 1;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.success-header h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.success-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Registration code section */
.registration-code-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
}

.registration-code-section h3 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-weight: 400;
}

.code-display-box {
    font-family: 'Orbitron', sans-serif;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 3px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Animated border effect */
@keyframes borderAnimation {
    0% { border-color: rgba(255, 255, 255, 0.2); }
    50% { border-color: rgba(255, 255, 255, 0.8); }
    100% { border-color: rgba(255, 255, 255, 0.2); }
}

.code-display-box {
    animation: borderAnimation 2s infinite;
}

/* Important message styling */
.important-message {
    position: relative;
    background-color: rgba(255, 193, 7, 0.15);
    border-left: 5px solid #FFC107;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 25px;
    z-index: 1;
}

.important-message h3 {
    font-size: 18px;
    color: #FFC107;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.important-message h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #FFC107;
    color: #4B0082;
    border-radius: 50%;
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

.important-message p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.5;
}

/* Actions section */
.actions-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.copy-code-btn {
    background: linear-gradient(135deg, #9C27B0 0%, #8A2BE2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-code-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}

.copy-code-btn:active {
    transform: translateY(0);
}

.copy-code-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: white;
}

.home-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.home-btn:active {
    transform: translateY(0);
}

.home-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: white;
}

/* Copy notification */
.copied-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1000;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.copied-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.copied-notification svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 8px;
}

/* Confetti effect (simplified) */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #FFC107;
    opacity: 0.8;
    animation: confettiFall 5s linear infinite;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

/* Add this to make it mobile responsive */
@media (max-width: 768px) {
    .success-header h2 {
        font-size: 24px;
    }
    
    .code-display-box {
        font-size: 22px;
        letter-spacing: 2px;
    }
    
    .actions-section {
        flex-direction: column;
    }
    
    .copy-code-btn, .home-btn {
        width: 100%;
    }
}