:root {
    --primary-color: #ff4d6d;
    --secondary-color: #c9184a;
    --text-color: #590d22;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    margin: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #ffd1ff, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    height: 100vh;
    overflow: hidden; /* Żeby nie było scrollowania na loginie */
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pływające serca w tle */
#hearts-bg {
    position: absolute; width: 100%; height: 100%; top: 0; left: 0; pointer-events: none; z-index: 0;
}
.heart {
    position: absolute; bottom: -50px; font-size: 24px; opacity: 0.6;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Główna karta logowania */
#login-screen {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.login-content {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typografia */
h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.6);
}

p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

.hint {
    font-size: 0.8rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    opacity: 0.6;
}

/* Stylizacja inputu daty */
.input-wrapper {
    position: relative;
    margin: 0 auto;
    width: fit-content;
}

input[type="date"] {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 12px 25px;
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-color);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 24, 74, 0.1);
    text-align: center;
}

input[type="date"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.2);
    transform: scale(1.02);
}

/* Animacja błędu (używana przez JS) */
input[type="date"].error {
    animation: shake 0.4s ease-in-out;
    border-color: red;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}