@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0d15;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124, 58, 237, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(167, 139, 250, 0.2) 0%, transparent 55%),
        linear-gradient(160deg, #0f0d15 0%, #1a1625 50%, #16141f 100%);
    z-index: 0;
}

.back-button {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.back-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    width: calc(100% - 40px);
    max-width: 960px;
    padding: 48px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    animation: slideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    margin-bottom: 0;
}

.logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 800;
    color: #18181b;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1rem;
    color: #71717a;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #9333ea);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #18181b;
    border: 1.5px solid #e4e4e7;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-secondary:hover {
    background: #f4f6fb;
    border-color: #7c3aed;
    color: #7c3aed;
    transform: translateY(-2px);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

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

.particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(167, 139, 250, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 9s; }
.particle:nth-child(2) { left: 25%; animation-delay: 1s; animation-duration: 7s; }
.particle:nth-child(3) { left: 40%; animation-delay: 2s; animation-duration: 11s; }
.particle:nth-child(4) { left: 55%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 10s; }
.particle:nth-child(6) { left: 85%; animation-delay: 1.5s; animation-duration: 6s; }
.particle:nth-child(7) { left: 15%; animation-delay: 4s; animation-duration: 12s; }
.particle:nth-child(8) { left: 60%; animation-delay: 2.5s; animation-duration: 9s; }
.particle:nth-child(9) { left: 90%; animation-delay: 0.8s; animation-duration: 7s; }

@keyframes float {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-80px); opacity: 0; }
}

@media (min-width: 768px) {
    body {
        padding: 24px;
    }

    .container {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 56px;
        align-items: center;
        text-align: left;
        padding: 56px 60px;
        max-width: 1000px;
    }

    .visual-section {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo img {
        height: 100px;
    }

    .welcome-title {
        font-size: 2.4rem;
    }

    .subtitle {
        font-size: 1.05rem;
    }

    .buttons-container {
        flex-direction: row;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1060px;
        padding: 64px 72px;
        gap: 72px;
    }

    .welcome-title {
        font-size: 2.6rem;
    }
}
