/* Modern Crypto/Web3 Design System - Purple to Blue Gradients */

:root {
    --purple-deep: #6B21A8;
    --purple-vibrant: #9333EA;
    --blue-electric: #3B82F6;
    --cyan-bright: #06B6D4;
    --cyan-neon: #22D3EE;
    --bg-dark: #0F172A;
    --bg-darker: #020617;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Animated Background */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(147, 51, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Container Styles */
.container {
    position: relative;
    z-index: 1;
}

/* Modern Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 0 80px rgba(147, 51, 234, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 48px 0 rgba(31, 38, 135, 0.45),
        0 0 100px rgba(147, 51, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(147, 51, 234, 0.3);
}

/* Logo Styles */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-container img {
    max-width: 120px;
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5));
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

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

/* Headings */
h1, h2, h3 {
    background: linear-gradient(135deg, #E9D5FF 0%, #93C5FD 50%, #67E8F9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Modern Progress Bar */
.progress-container {
    margin: 3rem auto;
    padding: 0 2rem;
    max-width: 500px;
}

.step-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3rem;
}

.step-tracker::before {
    content: "";
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.1) 100%);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    z-index: 0;
    border-radius: 10px;
}

.progress-line {
    background: linear-gradient(90deg, #9333EA 0%, #3B82F6 50%, #22D3EE 100%);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 3px;
    width: 0%;
    z-index: 1;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.6);
}

.step-item {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 27, 75, 0.8) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    height: 3.5rem;
    width: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
}

.step-item.active {
    background: linear-gradient(135deg, #9333EA 0%, #3B82F6 100%);
    border-color: #22D3EE;
    color: white;
    transform: scale(1.15);
    box-shadow: 
        0 0 30px rgba(147, 51, 234, 0.8),
        0 0 60px rgba(59, 130, 246, 0.4);
    animation: pulse 2s infinite;
}

.step-item.completed {
    background: linear-gradient(135deg, #9333EA 0%, #3B82F6 100%);
    border-color: #22D3EE;
    color: white;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.step-item.completed::after {
    content: '✓';
    font-size: 1.5rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.8), 0 0 60px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(147, 51, 234, 1), 0 0 80px rgba(59, 130, 246, 0.6);
    }
}

.step-label {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    font-weight: 500;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #22D3EE;
    font-weight: 600;
}

/* Modern Form Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    color: #FFFFFF;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Select specific styles */
select {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
}

select option {
    background: #1E293B;
    color: #FFFFFF;
    padding: 0.5rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #9333EA;
    box-shadow: 
        0 0 0 3px rgba(147, 51, 234, 0.2),
        0 0 20px rgba(147, 51, 234, 0.3);
    transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Modern Buttons */
.btn-gradient {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #9333EA 0%, #3B82F6 50%, #22D3EE 100%);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(147, 51, 234, 0.4),
        0 0 30px rgba(147, 51, 234, 0.2);
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(147, 51, 234, 0.6),
        0 0 50px rgba(147, 51, 234, 0.4);
}

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

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9333EA;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}

/* Radio and Checkbox */
input[type="radio"],
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #9333EA 0%, #3B82F6 100%);
    border-color: #22D3EE;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
}

input[type="radio"]:checked::after,
input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Alert/Flash Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideInDown 0.5s ease-out;
}

.alert-success {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: #67E8F9;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.alert-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #FDE68A;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Status Card */
.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    backdrop-filter: blur(10px);
}

.status-card h3 {
    margin-bottom: 1rem;
}

/* Info Box */
.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Help Text */
.text-sm,
small,
.help-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Paragraph text in forms */
p {
    color: rgba(255, 255, 255, 0.95);
}

/* Additional text elements that need better contrast */
span,
div {
    color: inherit;
}

.text-gray-600,
.text-gray-500 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Success Page Specific */
.success-icon {
    width: 100px;
    height: 100px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #9333EA 0%, #22D3EE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 60px rgba(147, 51, 234, 0.6);
}

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

/* Responsive */
@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .step-item {
        height: 2.5rem;
        width: 2.5rem;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        top: 3rem;
    }
}
