/* Shared CSS for wedding website - both password page and content */

/* Import stylish but classy fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500&display=swap');

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f7fafc;
    color: #2d3748;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Typography */
h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #2b6cb0;
    text-align: center;
    letter-spacing: 1px;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 2rem;
    margin-top: 2rem;
    color: #3182ce;
    letter-spacing: 0.5px;
}

/* Password page elements */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    text-align: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

@supports not (height: 100dvh) {
    .login-container {
        height: 100vh;
    }
}

@supports not (height: 100dvh) {
    .login-container {
        min-height: calc(100vh - 40px); /* Fallback with padding compensation */
    }
}

.content-container {
    display: none;
}

input {
    padding: 10px 15px;
    margin: 10px 0;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

button {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

button:hover {
    background-color: #3182ce;
}

.error-message {
    color: #e53e3e;
    margin-top: 10px;
    display: none;
}

.loading {
    display: none;
    margin-top: 15px;
    color: #4299e1;
    font-size: 0.9rem;
}

/* Content page elements */
.section {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border-left: 3px solid #4299e1;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #718096;
    font-size: 0.9rem;
}

.hero-image {
    width: 100%;
    height: 400px;
    background-color: #ebf4ff;
    display: block;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 8px;
    color: #4299e1;
    font-style: italic;
    object-fit: cover;
    object-position: bottom;
}

.date-highlight {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #1e6eb9;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: 1px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #ebf4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    border-radius: 6px;
    color: #4299e1;
}

/* Responsive design */
@media (max-width: 600px) {
    h1 {
        font-size: 2.3rem;
        margin: 0 0 1rem 0;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .login-container {
        padding: 20px;
        gap: 15px;
    }
    
    .login-container h1 {
        margin: 0 0 0.5rem 0;
    }
    
    .login-container p {
        margin: 0 0 1rem 0;
    }
    
    button {
        width: 100%;
        max-width: 300px;
    }
    
    input[type="password"] {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
    
    .hero-image {
        height: 200px;
    }
    
    .rsvp-button {
        width: 100%;
        max-width: 300px;
        box-sizing: border-box;
    }
}

/* RSVP Button Styles */
.rsvp-button {
    display: inline-block;
    background-color: #4299e1;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    margin: 10px 0;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.rsvp-button:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}