﻿@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.3) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(5, 150, 105, 0.2) 0%, transparent 50%);
        animation: backgroundMove 20s ease-in-out infinite alternate;
    }

@keyframes backgroundMove {
    0% {
        transform: translateX(-10px) translateY(-10px);
    }

    100% {
        transform: translateX(10px) translateY(10px);
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #10b981, transparent);
        animation: shimmer 2s infinite;
    }

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-section {
    margin-bottom: 2rem;
}

.logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo i {
    font-size: 2.2rem;
    color: white;
}

.title-section h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.title-section .main-title {
    color: #10b981;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.subtitle {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.loading-container {
    margin: 2rem 0;
}

.loading-spinner {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.spinner {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(16, 185, 129, 0.1);
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.steps {
    margin-top: 2rem;
    text-align: right;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

    .step.active {
        opacity: 1;
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
    }

    .step.completed {
        opacity: 1;
        background: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
    }

.step-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.step.active .step-icon,
.step.completed .step-icon {
    background: #10b981;
    color: white;
}

.step-text {
    flex: 1;
    font-size: 0.9rem;
    color: #4b5563;
}

.info-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    color: #059669;
    font-size: 0.8rem;
    font-weight: 500;
}

    .badge i {
        color: #10b981;
        font-size: 0.7rem;
    }

.security-note {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #374151;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .security-note i {
        color: #10b981;
        font-size: 1rem;
    }

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

    .particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 20%;
        animation-delay: 2s;
    }

    .particle:nth-child(3) {
        left: 30%;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        left: 40%;
        animation-delay: 6s;
    }

    .particle:nth-child(5) {
        left: 50%;
        animation-delay: 8s;
    }

    .particle:nth-child(6) {
        left: 60%;
        animation-delay: 10s;
    }

    .particle:nth-child(7) {
        left: 70%;
        animation-delay: 12s;
    }

    .particle:nth-child(8) {
        left: 80%;
        animation-delay: 14s;
    }

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.error-state {
    display: none;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

    .error-state i {
        color: #dc2626;
        margin-left: 0.5rem;
        font-size: 1.2rem;
    }

@media (max-width: 480px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }

    .title-section h1 {
        font-size: 1.6rem;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

        .logo i {
            font-size: 1.8rem;
        }

    .info-badges {
        flex-direction: column;
        align-items: center;
    }
}
