/* Grund-Layout und Zentrierung */
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: sans-serif;
}

/* Container-Steuerung: Desktop vs. Mobile */
.card { 
    width: 320px; /* Standardbreite für Computer */
    text-align: center; 
}

@media (max-width: 600px) {
    .card {
        width: 80vw; /* 80% Breite auf dem Smartphone */
    }
}

/* Gemeinsame Regeln für alle Eingabeelemente */
input, button {
    width: 100%;
    box-sizing: border-box; /* Padding wird in die Breite eingerechnet */
    outline: none;
}

/* Eingabefelder (Password & TOTP) */
input { 
    padding: 15px; 
    margin: 10px 0; 
    border-radius: 8px; 
    border: 1px solid #333; 
    background: #1e1e1e; 
    color: white; 
    font-size: 1.1rem; 
    text-align: center; 
    transition: border-color 0.3s;
}

/* Maskierung für das TOTP-Feld (Sichtschutz) */
input[type="password"] {
    letter-spacing: 0.3em;
}

input:focus {
    border-color: #555;
}

/* Der silberne Button mit 3D-Effekt */
button { 
    display: block;
    margin: 20px auto 0; 
    padding: 15px; 
    /* Silberner Farbverlauf */
    background: linear-gradient(to bottom, #e0e0e0 0%, #bdbdbd 50%, #a8a8a8 100%);
    color: #333; 
    font-size: 1.4rem; 
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    
    border: 1px solid #888; 
    border-radius: 10px; 
    cursor: pointer;
    
    /* Tiefenwirkung */
    box-shadow: 
        0 4px 6px rgba(0,0,0,0.3), 
        inset 0 1px 0 rgba(255,255,255,0.8);
    
    transition: all 0.2s ease;
}

button:hover {
    background: linear-gradient(to bottom, #eeeeee 0%, #cccccc 50%, #b8b8b8 100%);
}

button:active { 
    transform: translateY(2px); /* Klick-Animation */
    background: linear-gradient(to bottom, #a8a8a8 0%, #bdbdbd 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

/* Feedback-Animationen (Hintergrund-Blinken) */
.flash-success { 
    background-color: #0d4d0d !important; 
}

.flash-error { 
    background-color: #4d0d0d !important; 
}
