body {
	margin: 0;
	padding: 0;
	font-family: Arial, sans-serif;
	background: linear-gradient(135deg, #4A90E2, #50E3C2);
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
}

.login-box {
	background-color: white;
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 400px;
	box-sizing: border-box;
}

.login-box h2 {
	margin-bottom: 30px;
	text-align: center;
	color: #333;
}

.login-box label {
	display: block;
	margin-bottom: 8px;
	color: #333;
	font-weight: bold;
}

#passwordWrapper {
	position: relative;
}

.login-box input[type="text"],
.login-box input[type="password"] {
	width: 100%;
	padding: 12px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-sizing: border-box;
}

.login-box input[type="password"] {
	padding-right: 40px;
}

.login-box button[type="submit"] {
	width: 100%;
	padding: 12px;
	background-color: #4A90E2;
	border: none;
	border-radius: 10px;
	color: white;
	font-size: 1em;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.login-box button[type="submit"]:hover {
	background-color: #357ABD;
}

footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	padding: 1em 0;
	color: white;
	background-color: rgba(0, 0, 0, 0.2);
	font-size: 0.9em;
}

/* Skryje nativní Edge ikonky */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
	display: none;
}

/* Tlačítko s ikonou oka */
#togglePassword {
        position: absolute;
        top: 33%;
        right: 12px;
        transform: translateY(-50%);
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
        width: 22px;
        height: 22px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease;
}

/* hover nebo focus, ALE JEN pokud input není prázdný */
#passwordWrapper:hover input:not(:placeholder-shown) + #togglePassword,
#passwordWrapper:focus-within input:not(:placeholder-shown) + #togglePassword {
    opacity: 1;
    pointer-events: auto;
}


/* Obrázek uvnitř tlačítka */
#toggleIcon {
	width: 22px;
	height: 22px;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

#loginBtn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

#loginBtnWrapper {
    position: relative;
}

#loginTooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}

#loginBtn:disabled:hover::after {
    opacity: 1;
}