/* Wrapper */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
}

/* Box */
.login-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    padding: 0; /* wichtig: Titelleiste bündig */
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.08);
    overflow: hidden; /* verhindert Überlaufen */
    animation: fadeIn 0.4s ease;
}

/* Titelleiste */
.login-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0077ff;
    color: #fff;
    padding: 14px 18px;
    font-size: 1.2rem;
    font-weight: 600;
}

.login-titlebar img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

/* Innenbereich */
.login-box form,
.login-error {
    padding: 22px;
}

/* Input-Felder */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #0077ff;
    box-shadow: 0 0 6px rgba(0,119,255,0.25);
}

/* Login-Button */
.login-btn {
    width: 100%;
    padding: 12px 0;
    background: #0077ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.login-btn:hover {
    background: #005fd1;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.35);
    transform: translateY(-2px);
}

.pw-field {
    position: relative;
    width: 100%;
}

.pw-field input {
    width: 100%;
    padding-right: 42px; /* Platz für das Auge */
    box-sizing: border-box;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: 0.2s ease;
}

.toggle-pw:hover .pw-icon {
    opacity: 1;
}

.caps-warning {
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #b32626;
    font-weight: 600;
    display: none;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qr-box {
    text-align: center;
    margin: 20px 0;
}

.qr-box img {
    width: 180px;
    height: 180px;
}

.login-extra {
    margin-top: 0px;
    margin-bottom: 15px;
    text-align: right;
}

.login-extra a {
    font-size: 0.9rem;
    color: #0077ff;
    text-decoration: none;
}

.login-extra a:hover {
    text-decoration: underline;
}
.btn-cancel {
    background: #0077ff;
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
}
.btn-cancel:hover {
    background: #005fcc;
}

/* Fehlermeldung */
.login-error {
    width: 100%; /* volle Breite */
    background: #f9e5e5;
    color: #7a2b2b;
    border: 1px solid #e3b4b4;
    border-top: none; /* oben gerade */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box; /* verhindert Überlaufen */
}

.login-error::before {
	content: " ";
    width: 22px;
    height: 22px;
    background-image: url('/theme/images/warning.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}
/* Fehlermeldung */
.password-info {
    width: 100%; /* volle Breite */
    background: rgba(0, 180, 0, 0.25);
    color: #0f4d0f;
    border: 1px solid #0f4d0f;
    border-top: none; /* oben gerade */
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box; /* verhindert Überlaufen */
}

.password-info::before {
	content: " ";
    width: 22px;
    height: 22px;
    background-image: url('/theme/images/check.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.tooltip {
    background: #f9e5e5;
    border: 1px solid #e3b4b4;
    color: #7a2b2b;
	font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
	margin-top: -1px;
}

@media (max-width: 768px) {
    .tooltip {
		font-size: 0.7rem;
    }
}
