/* style.css */

/* Grundlegende Einstellungen */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* Die weiße Login-Box */
.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
}

h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 20px;
}

/* Eingabefelder */
input {
    width: 100%;
    padding: 14px 12px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fafafa;
    transition: border 0.3s;
}

input:focus {
    border-color: #C8C8AD; /* Deine Farbe */
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(200, 200, 173, 0.2);
}

label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Der Button */
button {
    width: 100%;
    background-color: #C8C8AD; /* DEIN BEIGE */
    color: #131C12; /* Dunkle Schrift */
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.3s, transform 0.1s;
    margin-top: 5px;
}

button:hover {
    background-color: #b0b095;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #eee;
    color: #aaa;
    cursor: not-allowed;
}

/* Fehlernachrichten */
.error-msg {
    color: #d93025;
    font-size: 14px;
    margin-top: 15px;
    min-height: 20px;
    font-weight: 500;
}

/* Tabs zum Umschalten (Mitarbeiter / Administrator) */
.role-switch {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 30px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}

.role-switch span {
    flex: 1;
    cursor: pointer;
    color: #666;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.role-switch span.active {
    background-color: white;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 2px solid #C8C8AD;
}

/* --- NEU: STANDORT AUSWAHL STYLES --- */
.step-instruction {
    margin-bottom: 15px; 
    font-weight: bold; 
    color: #333;
}

.location-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-location {
    background-color: white;
    border: 2px solid #f0f0f0;
    color: #333;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    margin-top: 0; /* Override default button margin */
}

.btn-location:hover {
    border-color: #C8C8AD;
    background-color: #fafafa;
    color: #131C12;
}

/* Header über den Eingabefeldern wenn Standort gewählt ist */
.selected-location-header {
    background: #f4f6f8;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #131C12;
    border: 1px solid #eee;
}

.change-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    border-bottom: 1px dotted #888;
}

.change-link:hover {
    color: #333;
    border-bottom-style: solid;
}

/* Zurück Button (sekundär) */
.btn-back {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    margin-top: 10px;
    font-weight: normal;
}

.btn-back:hover {
    background: #f9f9f9;
    color: #333;
}

/* Master Lock Screen Overlay */
#master-lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eef2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}