/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #87CEEB, #1E90FF);
    overflow: hidden;
}

/* Login Page Styles */
.login-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.login-container h1 {
    color: #1E90FF;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    text-align: center;
}

.input-group input:focus {
    outline: none;
    border-color: #1E90FF;
}

#login-btn {
    background-color: #1E90FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    width: 100%;
}

#login-btn:hover {
    background-color: #187bcd;
    transform: scale(1.05);
}

#error-message {
    color: #ff3860;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Birthday Page Styles */
.birthday-body {
    background: linear-gradient(135deg, #87CEEB, #1E90FF);
    overflow-x: hidden;
}

.birthday-container {
    text-align: center;
    z-index: 10;
}

#greeting {
    color: white;
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.cake-container {
    margin: 2rem auto;
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cake-image {
    max-width: 100%;
    height: auto;
    animation: cakeBounce 2s infinite alternate ease-in-out;
}

@keyframes cakeBounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

.message-container {
    color: white;
    margin: 2rem 0;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto;
    transition: opacity 1s ease-in-out;
    text-align: center;
}

#birthday-message {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.extended-wishes {
    line-height: 1.8;
}

.extended-wishes p {
    margin: 0.5rem 0;
}

.signature {
    margin-top: 1.5rem;
    font-style: italic;
    text-align: right;
}

#play-music {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, background-color 0.3s;
}

#play-music:hover {
    transform: scale(1.05);
    background-color: #ff5252;
}

/* Balloons */
.balloons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    width: 50px;
    height: 65px;
    border-radius: 50%;
    animation: float 15s infinite;
}

.balloon::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
}

.balloon-1 {
    background: rgba(255, 99, 132, 0.7);
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    background: rgba(54, 162, 235, 0.7);
    left: 30%;
    animation-delay: 2s;
}

.balloon-3 {
    background: rgba(255, 206, 86, 0.7);
    left: 50%;
    animation-delay: 4s;
}

.balloon-4 {
    background: rgba(75, 192, 192, 0.7);
    left: 70%;
    animation-delay: 6s;
}

.balloon-5 {
    background: rgba(153, 102, 255, 0.7);
    left: 90%;
    animation-delay: 8s;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

/* 错误提示晃动动画 */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Media Queries */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 1.5rem;
    }
    
    #greeting {
        font-size: 2rem;
    }
    
    .cake {
        transform: scale(0.8);
    }
} 