
:root {
    --lama-size: 90px;
    --lama-start-x: -100px;
    --lama-stop-x: calc(50vw - 45px); 
    --lama-bounce: -20px;

    /* Farben */
    --salbeigruen: #5F7466;
    --gold: #D4AF37;
    --deepseagrean: #8fbc8f;
    --deepseagrean3: #9bcd9b;
}

@media (min-width: 768px) {
    :root {
        --lama-size: 150px;
        --lama-start-x: -200px;
        --lama-stop-x: calc(50vw - 280px); 
        --lama-bounce: -30px;
    }
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Dezent weicher Verlauf zwischen euren Wunschfarben */
    background: linear-gradient(135deg, #F5EFF1 0%, #EFF2EF 100%); 
    font-family: 'Georgia', serif;
    overflow: hidden; 
}

/* Der Hauptcontainer */
.login-container {
    width: 85%;
    max-width: 420px;
    text-align: center;
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(107, 29, 47, 0.08); /* Minimal weinroter Schatten */
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    
    opacity: 0;
    transform: scale(0.95);
    animation: fadeInBox 1.2s ease-out 1s forwards;
}

@keyframes fadeInBox {
    to { opacity: 1; transform: scale(1); }
}

/* Florale Elemente an den Ecken des Containers */
.floral-decor {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: -1; /* Hinter dem Text, aber sichtbar am Rand */
    pointer-events: none;
}

.floral-top-left {
    top: -25px;
    left: -25px;
}

.floral-bottom-right {
    bottom: -25px;
    right: -25px;
    transform: rotate(180deg); /* Spiegelt das Blumenmuster für unten rechts */
}

@media (min-width: 768px) {
    .login-container { padding: 50px 50px; max-width: 480px; }
    .floral-decor { width: 120px; height: 120px; top: -40px; left: -40px; }
    .floral-bottom-right { bottom: -40px; right: -40px; }
}

/* Überschriften */
.sub-title {
    color: var(--salbeigruen);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75em;
    margin: 0 0 5px 0;
    font-weight: bold;
}

h1 {
    color: var(--deepseagrean);
    font-style: italic;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    h1 { font-size: 2.2em; }
}

/* Das Paarbild im edlen Rahmen */
.photo-frame {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px auto;
    border-radius: 50%;
    border: 3px double var(--gold); /* Klassischer Doppelrahmen in Gold */
    padding: 5px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Fallback-Styling, solange kein Bild da ist */
    background: #e8e8e8; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #999;
}

p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

/* Eingabebereich */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
}

@media (min-width: 768px) {
    .form-group {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }
}

input[type="password"] {
    padding: 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

input[type="password"]:focus {
    border-color: var(--deepseagrean);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

button {
    padding: 14px 25px;
    font-size: 16px;
    background-color: var(--deepseagrean);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    transition: background-color 0.3s;
    box-sizing: border-box;
    font-weight: bold;
    letter-spacing: 1px;
}

button:hover {
    background-color: #8fbc8f; /* #4A121F; */
}

@media (min-width: 768px) {
    input[type="password"], button { width: auto; }
}

/* Das Lama */
#lama {
    font-size: var(--lama-size); 
    position: absolute;
    bottom: 15px;
    left: var(--lama-start-x); 
    z-index: 20;
    animation: walkIn 2.5s ease-out forwards;
}

@keyframes walkIn {
    0% { left: var(--lama-start-x); }
    25% { transform: translateY(var(--lama-bounce)); }
    50% { transform: translateY(0); }
    75% { transform: translateY(var(--lama-bounce)); }
    100% { left: var(--lama-stop-x); transform: translateY(0); }
}

.lama-spiegeln {
    display: inline-block;
    transform: scaleX(-1);
}

.error {
    color: var(--deepseagrean);
    font-size: 0.9em;
    margin-top: 15px;
    display: none;
    font-weight: bold;
}

/* Konfetti */
.confetti {
    position: fixed;
    top: -10px;
    width: 8px;
    height: 8px;
    z-index: 9999;
    pointer-events: none;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(100vh) rotate(720deg); }
}