:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --bg-color: #fff0f3;
    --text-color: #4a4a4a;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    background-color: var(--bg-color);
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* Animazione Cuore */
.heart-container {
    text-align: center;
    cursor: pointer;
}

.heart {
    background-color: var(--primary-color);
    display: inline-block;
    height: 100px;
    margin: 0 10px;
    position: relative;
    top: 0;
    transform: rotate(-45deg);
    width: 100px;
    animation: pulse 1.2s infinite;
    box-shadow: 0 0 40px rgba(255, 77, 109, 0.4);
}

.heart:before,
.heart:after {
    content: "";
    background-color: var(--primary-color);
    border-radius: 50%;
    height: 100px;
    position: absolute;
    width: 100px;
}

.heart:before {
    top: -50px;
    left: 0;
}

.heart:after {
    left: 50px;
    top: 0;
}

@keyframes pulse {
    0% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
    100% { transform: rotate(-45deg) scale(1); }
}

.tap-text {
    margin-top: 80px;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Login Box */
.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 77, 109, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.login-box h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 2px solid #ffe5ec;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    text-align: center;
    font-size: 1rem;
}

input[type="password"]:focus {
    border-color: var(--secondary-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background-color: #ff335c;
    transform: translateY(-2px);
}

.error {
    color: #d00000;
    font-size: 0.8rem;
    margin-top: 15px;
    height: 15px;
}

/* Lettera */
.letter-container {
    width: 90%;
    max-width: 600px;
    perspective: 1000px;
}

.letter {
    background: var(--white);
    padding: 60px 40px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Effetto carta moderna */
.letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 95%, #f0f0f0 100%);
    pointer-events: none;
}

.letter h1 {
    font-family: 'Dancing Script', cursive;
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
}

.text-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
}

.footer-letter {
    margin-top: 40px;
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--secondary-color);
}