/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
}

/* ========== MAIN CONTAINER ========== */
.container {
    position: relative;
    z-index: 2;
    max-width: 550px;
    margin: 0 auto;
    padding: 50px 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: slideIn 0.8s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========== HEARTBEAT ICON ========== */
.heartbeat-icon {
    position: relative;
    margin-bottom: 25px;
}

.heart {
    font-size: 70px;
    display: inline-block;
    animation: heartbeat 1.3s ease infinite;
    filter: drop-shadow(0 0 15px #ff4d6d);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.heart-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: rgba(255, 77, 109, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.3s ease infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* ========== DATE DISPLAY ========== */
.date-display {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 300;
}

/* ========== HEADING ========== */
h1 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
    background: linear-gradient(135deg, #fff, #ff4d6d, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.wave {
    display: inline-block;
    animation: waveAnim 1s infinite;
}

@keyframes waveAnim {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

/* ========== EMOTIONAL MESSAGE ========== */
.emotional-message {
    margin: 15px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quote-icon {
    font-size: 1rem;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.quote-text {
    color: #ffb3c1;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ========== LOVE NOTE ========== */
.love-note {
    background: rgba(255, 77, 109, 0.1);
    padding: 18px 22px;
    border-radius: 20px;
    margin: 20px 0 25px;
    border-left: 3px solid #ff4d6d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    width: 100%;
}

.love-note-text {
    font-size: 0.9rem;
    color: #ffc1cd;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #ff4d6d;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== FORM WRAPPER ========== */
.form-wrapper {
    width: 100%;
    max-width: 380px;
    margin-top: 10px;
}

/* ========== INPUT GROUP ========== */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    border-radius: 12px 12px 0 0;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-bottom-color: #ff4d6d;
}

.input-group label {
    position: absolute;
    left: 18px;
    top: 16px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.input-group.focused label,
.input-group input:focus + label,
.input-group input:valid + label {
    top: -12px;
    left: 15px;
    font-size: 0.7rem;
    color: #ff4d6d;
    background: rgba(0, 0, 0, 0.7);
    padding: 0 10px;
    border-radius: 20px;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d6d, #ff1e4d);
    transition: width 0.3s;
}

.input-group.focused .input-border {
    width: 100%;
}

/* ========== ROMANTIC BUTTON ========== */
.romantic-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff4d6d, #ff1e4d);
    border: none;
    border-radius: 60px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.romantic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.romantic-btn:hover::before {
    width: 300px;
    height: 300px;
}

.romantic-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 77, 109, 0.6);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.romantic-btn:hover .btn-icon {
    transform: translateX(5px);
}

.romantic-btn.loading {
    opacity: 0.7;
    cursor: wait;
}

/* ========== HINT WRAPPER ========== */
.hint-wrapper {
    margin-top: 25px;
    text-align: center;
}

.hint {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hint:hover {
    color: #ff4d6d;
    transform: scale(1.05);
}

.hint-sparkle {
    display: inline-block;
    animation: sparkle 1s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ========== ERROR MESSAGE ========== */
.error-message {
    margin-top: 20px;
    padding: 12px 18px;
    background: rgba(255, 77, 109, 0.2);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 77, 109, 0.3);
}

.error-icon {
    font-size: 1.1rem;
}

.error-text {
    font-size: 0.85rem;
    color: #ff8fa3;
}

/* ========== SUCCESS MESSAGE ========== */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff4d6d, #ff1e4d);
    padding: 20px 35px;
    border-radius: 60px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 10000;
    animation: successPop 0.5s ease, fadeOutMsg 0.5s ease 2.5s forwards;
    box-shadow: 0 0 50px rgba(255, 77, 109, 0.8);
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutMsg {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ========== HEART RAIN ========== */
.heart-rain {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 9999;
    animation: rainDown 1.5s ease-out forwards;
}

@keyframes rainDown {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(200px) rotate(360deg);
        opacity: 0;
    }
}

/* ========== WHISPER ========== */
.whisper {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.whisper.show {
    opacity: 1;
    transform: translateY(0);
}

.whisper-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

/* ========== FLOAT UP ANIMATION ========== */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    .container {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .heart {
        font-size: 55px;
    }
    
    .heart-pulse {
        width: 55px;
        height: 55px;
    }
    
    .quote-text {
        font-size: 0.8rem;
    }
    
    .love-note-text {
        font-size: 0.8rem;
    }
    
    .input-group input {
        padding: 14px 16px;
    }
    
    .romantic-btn {
        padding: 14px;
        font-size: 0.9rem;
    }
    
    .success-message {
        font-size: 0.9rem;
        padding: 15px 25px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .emotional-message {
        gap: 8px;
    }
    
    .quote-icon {
        font-size: 0.8rem;
    }
    
    .quote-text {
        font-size: 0.7rem;
    }
    
    .love-note {
        padding: 12px 16px;
    }
    
    .love-note-text {
        font-size: 0.7rem;
    }
    
    .success-message {
        font-size: 0.8rem;
        padding: 12px 20px;
        white-space: normal;
        width: 90%;
        text-align: center;
    }
}