:root {
    /* Light Theme - Default */
    --bg-color: #FFFFFF;
    --text-primary: #201388;
    --text-secondary: rgba(32, 19, 136, 0.7);
    --accent-color: #201388;
    --card-bg: rgba(255, 255, 255, 0.6);
    --card-border: rgba(32, 19, 136, 0.1);
    --blob-1: rgba(32, 19, 136, 0.15);
    --blob-2: rgba(32, 19, 136, 0.1);
    --blob-3: rgba(32, 19, 136, 0.05);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #201388;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #FFFFFF;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --blob-1: rgba(255, 255, 255, 0.15);
    --blob-2: rgba(255, 255, 255, 0.1);
    --blob-3: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Theme Switch */
.theme-switch-wrapper {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 100;
    animation: fadeInDown 1s ease-out forwards;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 64px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: rgba(32, 19, 136, 0.1);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    border-radius: 34px;
}

[data-theme="dark"] .slider {
    background-color: rgba(255, 255, 255, 0.1);
}

.slider .icon-light, .slider .icon-dark {
    font-size: 14px;
    z-index: 1;
}

.slider:before {
    background-color: var(--bg-color);
    bottom: 4px;
    content: "";
    height: 24px;
    left: 5px;
    position: absolute;
    transition: transform .4s cubic-bezier(0.4, 0.0, 0.2, 1);
    width: 24px;
    z-index: 2;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

/* Main Content */
.container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
}

.content {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    max-width: 540px;
    width: 100%;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    animation: float 8s ease-in-out infinite;
}

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

.logo-container {
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--accent-color);
    filter: blur(40px);
    opacity: 0.3;
    z-index: -1;
    animation: pulseGlow 4s infinite alternate;
}

.logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    animation: pulseLogo 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.15; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    animation: move 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -15%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-2);
    animation-delay: -5s;
    animation-duration: 20s;
}

.blob-3 {
    top: 40%;
    left: 30%;
    width: 45vw;
    height: 45vw;
    background: var(--blob-3);
    animation-delay: -10s;
    animation-duration: 18s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    50% {
        transform: translate(5%, 10%) scale(1.1) rotate(10deg);
    }
    100% {
        transform: translate(-5%, 5%) scale(0.9) rotate(-5deg);
    }
}
