* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --accent-color: #a09aa0;
    --gradient-1: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    --gradient-2: linear-gradient(225deg, rgba(236, 72, 153, 0.15), rgba(239, 68, 68, 0.15));
    --gradient-3: linear-gradient(45deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.15));
    --flower-opacity: 0.26;
    --star-opacity: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #1a1a1a;
        --text-primary: #ffffff;
        --accent-color: #a09aa0;
        --gradient-1: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
        --gradient-2: linear-gradient(225deg, rgba(236, 72, 153, 0.25), rgba(239, 68, 68, 0.25));
        --gradient-3: linear-gradient(45deg, rgba(59, 130, 246, 0.25), rgba(14, 165, 233, 0.25));
        --flower-opacity: 0.15;
        --star-opacity: 1;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* IMMAGINE DI SFONDO */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        var(--gradient-1),
        var(--gradient-2),
        var(--gradient-3),
        url('https://rosply.com/assets/images/hv-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--flower-opacity);
    z-index: -1;
    transition: opacity 0.6s ease;
}

/* CONTENITORE */
.container {
    background: rgba(255, 255, 255, 0);
    
    border-radius: 24px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0),
        0 0 0 1px rgba(255, 255, 255, 0);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* LINEA SUPERIORE ANIMATA */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

/* TITOLO */
.title {
    font-size: 2.3rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    background: #a8a8a8;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}
