/* ===================================
   Wedding Website - Main Styles
   Mobile First Approach
   =================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===================================
   Envelope Intro
   =================================== */
.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-container {
    text-align: center;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;
    margin: 0 auto;
    perspective: 1000px;
}

.envelope-body {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f5f5f0 0%, #ebe9dd 100%);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.envelope-body::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, transparent 49.5%, var(--color-bg-alt) 50%),
                linear-gradient(-135deg, transparent 49.5%, var(--color-bg-alt) 50%);
    background-size: 51% 100%;
    background-position: left, right;
    background-repeat: no-repeat;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, #d9d1bd 100%);
    transform-origin: top center;
    transition: transform 0.6s ease;
    z-index: 2;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.envelope.opened .envelope-flap {
    transform: rotateX(180deg);
}

.envelope-letter {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 70%;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(0);
    transition: transform 0.6s ease 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.envelope.opened .envelope-letter {
    transform: translateY(-120%);
}

.letter-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-primary);
    text-align: center;
    padding: 0.5rem;
}

.seal {
    position: absolute;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(142, 37, 37, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seal::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.seal:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(142, 37, 37, 0.5);
}

.seal-text {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.envelope-hint {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-primary);
    opacity: 0.8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.visible {
    opacity: 1;
}

.main-content.hidden {
    display: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0) scale(1.1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(235, 233, 221, 0.7) 0%,
        rgba(235, 233, 221, 0.5) 50%,
        rgba(235, 233, 221, 0.8) 100%
    );
}

.hero-content {
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-names {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    letter-spacing: 2px;
}

.scroll-indicator {
    margin-top: 3rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: var(--color-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ===================================
   Scroll Animations
   =================================== */

/* Fade-in Animation für Sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in von links */
.slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Slide-in von rechts */
.slide-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Pop-in Animation für Countdown */
.countdown-timer .countdown-item {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countdown-timer .countdown-item.pop-in {
    opacity: 1;
    transform: scale(1);
}

/* Section-Titel Animation */
.section .section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section .section-title.title-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline Items */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger-Delays für aufeinanderfolgende Elemente */
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }
.timeline-item:nth-child(6) { transition-delay: 0.5s; }

/* Deaktiviere Animationen für reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .countdown-item,
    .section-title,
    .timeline-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===================================
   Section Base Styles
   =================================== */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ===================================
   Countdown Section
   =================================== */
.countdown-section {
    background: var(--color-bg-alt);
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin-bottom: 1.5rem;
}

.countdown-item {
    background: var(--color-bg);
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
    min-width: 60px;
    flex: 1;
    max-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.countdown-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
}

.countdown-subtitle {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text);
}

/* ===================================
   Couple Section
   =================================== */
.couple-section {
    background: var(--color-bg);
}

.couple-photos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.couple-photo {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.couple-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.couple-photo:hover img {
    transform: scale(1.05);
}

.couple-text {
    text-align: right;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   Timeline Section
   =================================== */
.timeline-section {
    background: var(--color-secondary);
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-secondary) 20%, var(--color-secondary) 80%, var(--color-bg) 100%);
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 30px;
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border: 3px solid var(--color-bg);
    border-radius: 50%;
    transform: translateX(-6px);
}

.timeline-content {
    background: var(--color-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-time {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.map-toggle:hover {
    background: var(--color-accent);
}

.map-container {
    display: none;
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.map-container.active {
    display: block;
}

.timeline-note {
    background: rgba(142, 37, 37, 0.1);
    border-left: 3px solid var(--color-accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.timeline-note .note-icon {
    margin-right: 0.25rem;
}

/* ===================================
   Image Divider
   =================================== */
.image-divider {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.divider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Accommodation Section
   =================================== */
.accommodation-section {
    background: var(--color-bg);
}

.accommodation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.accommodation-grid.two-cards {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accommodation-grid.three-cards {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.accommodation-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    position: relative;
}

.accommodation-card.featured {
    border: 2px solid var(--color-primary);
}

.accommodation-card.luxury {
    border: 2px solid var(--color-accent);
}

.accommodation-card.budget {
    border: 2px solid var(--color-secondary);
}

.accommodation-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.accommodation-badge.luxury-badge {
    background: var(--color-accent);
}

.accommodation-badge.budget-badge {
    background: var(--color-secondary);
    color: var(--color-text);
}

.accommodation-card:hover {
    transform: translateY(-5px);
}

.accommodation-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.accommodation-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.accommodation-card p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.accommodation-distance {
    font-size: 0.8rem !important;
    color: var(--color-primary) !important;
}

.accommodation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.accommodation-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.accommodation-link:hover {
    color: var(--color-primary);
}

.accommodation-link.booking-link {
    display: block;
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-align: center;
    transition: background 0.3s ease;
}

.accommodation-link.booking-link:hover {
    background: var(--color-accent);
    color: #fff;
}

.accommodation-note {
    text-align: center;
    background: var(--color-bg-alt);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accommodation-note:last-child {
    margin-bottom: 0;
}

.accommodation-note.transfer-note {
    background: rgba(132, 155, 107, 0.2);
    border: 1px solid var(--color-primary);
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text);
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(132, 155, 107, 0.1);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===================================
   RSVP Section
   =================================== */
.rsvp-section {
    background: var(--color-bg);
    text-align: center;
}

.rsvp-content {
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.rsvp-cta {
    padding: 2rem;
}

.rsvp-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6b8254 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(132, 155, 107, 0.3);
}

.rsvp-button:hover {
    background: linear-gradient(135deg, #6b8254 0%, var(--color-primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(132, 155, 107, 0.4);
}

.rsvp-button-icon {
    font-size: 1.5rem;
}

.rsvp-button-text {
    line-height: 1.2;
}

.rsvp-placeholder {
    background: var(--color-bg-alt);
    padding: 3rem 2rem;
    border-radius: 15px;
    border: 2px dashed var(--color-primary);
}

.rsvp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rsvp-placeholder p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.rsvp-contact {
    font-size: 0.9rem !important;
    color: var(--color-text) !important;
    opacity: 0.7;
    margin-top: 1.5rem !important;
}

.rsvp-contact a {
    color: var(--color-accent);
    text-decoration: none;
}

.rsvp-contact a:hover {
    text-decoration: underline;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}

.footer-names {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.footer-heart {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===================================
   Tablet Styles (min-width: 600px)
   =================================== */
@media (min-width: 600px) {
    .envelope {
        width: 350px;
        height: 220px;
    }
    
    .seal {
        width: 80px;
        height: 80px;
    }
    
    .seal::before {
        width: 70px;
        height: 70px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-names {
        font-size: 2rem;
    }
    
    .hero-date {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .countdown-item {
        min-width: 80px;
        max-width: 100px;
        padding: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    
    .couple-photos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .couple-photo img {
        height: 350px;
    }
    
    .accommodation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accommodation-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accommodation-grid.three-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-divider {
        height: 350px;
    }
}

/* ===================================
   Desktop Styles (min-width: 900px)
   =================================== */
@media (min-width: 900px) {
    .envelope {
        width: 400px;
        height: 250px;
    }
    
    .seal {
        width: 90px;
        height: 90px;
    }
    
    .letter-text {
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-names {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .countdown-timer {
        gap: 1.5rem;
    }
    
    .countdown-item {
        min-width: 100px;
        max-width: 120px;
        padding: 1.5rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .timeline {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: -3rem;
        width: 20px;
        height: 20px;
    }
    
    .accommodation-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .accommodation-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .accommodation-grid.three-cards {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .image-divider {
        height: 400px;
    }
    
    .faq-question {
        font-size: 1.1rem;
    }
}

/* ===================================
   Large Desktop (min-width: 1200px)
   =================================== */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* ===================================
   Password Protection Overlay
   =================================== */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Login Page Specific Styles */
.login-page {
    min-height: 100vh;
    overflow: hidden;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.login-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(235, 233, 221, 0.85) 0%,
        rgba(210, 202, 182, 0.9) 100%
    );
}

.login-overlay {
    background: transparent;
}

.password-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
}

.password-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-decoration {
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-primary) 20%,
        var(--color-secondary) 50%,
        var(--color-primary) 80%,
        transparent 100%
    );
}

.login-decoration.top {
    top: 0;
}

.login-decoration.bottom {
    bottom: 0;
}

.login-header {
    margin-bottom: 1.5rem;
}

.login-pretitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.login-names {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.login-date {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.7;
}

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-bg-alt),
        transparent
    );
}

.login-divider-icon {
    font-size: 1.5rem;
    padding: 0 1rem;
    line-height: 1;
}

.password-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.password-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.password-subtitle {
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.password-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--color-bg-alt);
    border-radius: 50px;
    text-align: center;
    letter-spacing: 0.15em;
    background: var(--color-bg);
    transition: all 0.3s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(132, 155, 107, 0.15);
}

.password-input::placeholder {
    color: var(--color-text);
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.password-input.error {
    border-color: #e74c3c;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.password-button {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6b8254 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.password-button:hover {
    background: linear-gradient(135deg, #6b8254 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(132, 155, 107, 0.35);
}

.password-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.password-button:hover .button-icon {
    transform: translateX(4px);
}

.password-error {
    color: #e74c3c;
    font-size: 0.9rem;
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.password-hint {
    color: var(--color-text);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    opacity: 0.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hint-icon {
    font-size: 1rem;
}

/* ===================================
   Utility Classes
   =================================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
