* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Page Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.login-form h2 {
    color: #e91e63;
    margin-bottom: 10px;
    font-size: 2em;
}

.login-form p {
    color: #666;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-with-help {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-help input {
    flex: 1;
    padding-right: 40px;
}

.help-icon {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    background: #e91e63;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    transition: background-color 0.3s;
}

.help-icon:hover {
    background: #ad1457;
}

/* Custom Tooltip Styles */
.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 250px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

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

button {
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100%;
}

button:hover {
    transform: translateY(-2px);
}

.error {
    color: #e91e63;
    margin-top: 15px;
    padding: 10px;
    background: #fce4ec;
    border-radius: 5px;
}

.hidden {
    display: none;
}

/* Birthday Page Styles */
.screen {
    display: none;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
    position: relative;
}

.screen.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Intro Screen */
.intro-content {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.name-title {
    font-size: 4em;
    color: #e91e63;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
    letter-spacing: 0.1em;
}

.couple-photo {
    margin: 30px 0;
}

.couple-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e91e63;
}

.intro-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #e91e63;
}

.intro-message p {
    font-size: 1.3em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.continue-btn {
    background: linear-gradient(45deg, #e91e63, #f06292);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 20px;
}

.continue-btn:hover {
    transform: translateY(-2px);
}

/* Verse Screens - New Layout */
.verse-layout {
    display: flex;
    max-width: 1200px;
    width: 100%;
    min-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.verse-left {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
}

.verse-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.verse-right {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.verse-header {
    margin-bottom: 25px;
}

.curvy-title {
    font-family: 'Brush Script MT', cursive, 'Comic Sans MS', sans-serif;
    font-size: 2.2em;
    color: #c62828;
    text-align: center;
    margin-bottom: 15px;
    transform: rotate(-1deg);
    font-weight: normal;
    letter-spacing: 1px;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.05), rgba(233, 30, 99, 0.05));
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px dashed rgba(198, 40, 40, 0.2);
    position: relative;
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.1);
}

.curvy-title::before {
    content: "💕";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    font-size: 0.8em;
    opacity: 0.6;
}

.curvy-title::after {
    content: "💕";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 0.8em;
    opacity: 0.6;
}

.reason-number {
    color: #c62828;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    font-style: italic;
}

.reason-title {
    color: #2e2e2e;
    font-size: 2.2em;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}

.verse-body {
    margin-bottom: 30px;
}

.verse-description {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.quote-section {
    margin-top: 30px;
}

.poem-quote {
    font-size: 1.3em;
    color: #ad1457;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    border: none;
    padding: 0;
}

.verse-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.prev-reason-btn {
    background: #757575;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.prev-reason-btn:hover {
    background: #616161;
    transform: translateY(-2px);
}

.next-reason-btn {
    background: #c62828;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.next-reason-btn:hover {
    background: #a21e1e;
    transform: translateY(-2px);
}

.photo-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 10px;
    display: block;
}

.photo-card .photo-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #f8bbd9, #e1bee7);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #4a148c;
    font-weight: bold;
}

/* Progress Dots - Updated */
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    transition: background 0.3s;
}

.dot.active {
    background: #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
    .verse-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .verse-left {
        padding: 30px 25px;
        min-height: 70vh;
    }
    
    .verse-content-wrapper {
        flex: 1;
    }
    
    .verse-right {
        padding: 30px;
    }
    
    .curvy-title {
        font-size: 1.8em;
        margin-bottom: 12px;
        padding: 12px 20px;
    }
    
    .curvy-title::before,
    .curvy-title::after {
        font-size: 0.7em;
    }
    
    .reason-number {
        font-size: 1.5em;
    }
    
    .reason-title {
        font-size: 1.8em;
    }
    
    .verse-description {
        font-size: 1em;
    }
    
    .poem-quote {
        font-size: 1.1em;
    }
    
    .verse-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .prev-reason-btn,
    .next-reason-btn {
        width: 100%;
    }
    
    .photo-card {
        max-width: 100%;
    }
    
    .couple-image,
    .photo-card .photo-placeholder {
        max-width: 100%;
    }
    
    .photo-card {
        max-width: 100%;
    }
}

/* Finale Screen */
.finale-content {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.finale-title {
    color: #e91e63;
    font-size: 3em;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.finale-message p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.finale-message p:last-child {
    font-size: 1.5em;
    color: #e91e63;
    font-weight: bold;
    margin-top: 20px;
}

.music-btn {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
    margin: 20px 10px;
}

.music-btn:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .verse-content {
        flex-direction: column;
        text-align: center;
    }
    
    .verse-image {
        font-size: 6em;
    }
    
    .verse-text {
        text-align: center;
    }
    
    .poem {
        font-size: 1.5em;
    }
    
    .reason {
        font-size: 1.1em;
    }
    
    .name-title {
        font-size: 3em;
    }
    
    .finale-title {
        font-size: 2.5em;
    }
}

.logout-btn {
    background: linear-gradient(45deg, #757575, #9e9e9e);
    margin-top: 20px;
    font-size: 14px;
    padding: 10px 20px;
    width: auto;
}

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

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

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

/* Responsive */
@media (max-width: 600px) {
    .birthday-content h1 {
        font-size: 2em;
    }
    
    .birthday-animation {
        font-size: 2em;
    }
    
    .login-form {
        padding: 30px 20px;
    }
}
.photo-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #f8bbd9, #e1bee7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 3em;
    color: #4a148c;
    border: 5px solid #e91e63;
}
/* Poetry Screen */
.poetry-content {
    max-width: 900px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 50px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.poetry-header {
    margin-bottom: 40px;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 30px;
}

.poetry-title {
    color: #c62828;
    font-size: 3em;
    font-weight: 300;
    margin-bottom: 10px;
    font-style: italic;
}

.poetry-subtitle {
    color: #666;
    font-size: 1.3em;
    font-weight: 400;
    margin: 0;
}

.poetry-body {
    margin-bottom: 40px;
}

.poem-text {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.stanza {
    margin-bottom: 25px;
    padding: 15px 0;
    color: #444;
    font-size: 1.1em;
    font-style: italic;
    border-left: 3px solid #e91e63;
    padding-left: 20px;
    transition: all 0.3s ease;
}

.stanza:hover {
    background: rgba(233, 30, 99, 0.05);
    padding-left: 25px;
}

.poetry-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.poetry-actions .continue-btn {
    background: linear-gradient(45deg, #c62828, #e91e63);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.3);
}

.poetry-actions .continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.4);
}

/* Responsive for Poetry */
@media (max-width: 768px) {
    .poetry-content {
        padding: 30px 20px;
        max-height: 85vh;
    }
    
    .poetry-title {
        font-size: 2.2em;
    }
    
    .poetry-subtitle {
        font-size: 1.1em;
    }
    
    .poem-text {
        max-width: 100%;
    }
    
    .stanza {
        font-size: 1em;
        padding-left: 15px;
    }
    
    .stanza:hover {
        padding-left: 18px;
    }
}