body.task-login {
    background-image: url('tlo-budynek.png') !important;
    background-size: cover !important;          /* Dopasowuje obrazek, by wypełnił cały ekran */
    background-position: center !important;     /* Centruje obrazek */
    background-repeat: no-repeat !important;    /* Wyłącza powtarzalność kafelkową */
    background-attachment: fixed !important;    /* Zablokowanie przewijania tła */
}

/* Opcjonalnie: lekkie przyciemnienie lub tło pod samym formularzem, 
   aby tekst i pola logowania były idealnie czytelne na tle budynku */
body.task-login .card, 
body.task-login #layout-content {
    background-color: rgba(255, 255, 255, 0.30) !important; /* Półprzezroczyste białe tło formularza */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);              /* Wyraźny cień oddzielający od tła */
}

body.task-login {
    background-image: url('tlo-budynek.png') !important; /* Tło z liniami z Twojego obrazka */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    color: #333;
}

/* --- Główny kontener karty --- */
#login-box {
    width: 450px;
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    padding: 40px !important;
    border: none !important;
    margin: 0 !important;
    position: relative;
}

/* Ukryj oryginalny tytuł Roundcube */
#login-box h1 {
    display: none;
}

/* --- Nagłówek z logo --- */
.login-header {
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Wstawienie Twojego logo (musisz podać poprawną ścieżkę) */
.login-logo {
    background-image: url('logo-fpd.png'); 
    width: 150px; /* Dostosuj szerokość */
    height: 50px; /* Dostosuj wysokość */
    background-size: contain;
    background-repeat: no-repeat;
}

.login-company-info {
    text-align: right;
    font-size: 13px;
    color: #0056b3; /* Kolor ciemnoniebieski */
    font-weight: bold;
    line-height: 1.2;
}

.login-header-title {
    margin-top: 20px;
    text-align: left;
}

.login-header-title h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.login-header-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Niebieska linia pod tytułem */
.header-underline {
    width: 50px;
    height: 3px;
    background-color: #00aaff; /* Kolor jasnoniebieski */
    margin: 10px 0 20px 0;
}

/* --- Formularz i pola --- */
#login-form {
    padding: 0 !important;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: none; /* Ukryj standardowe etykiety label */
}

.form-control {
    width: 100%;
    height: 50px;
    padding: 10px 15px 10px 45px !important; /* Miejsce na ikonę z lewej */
    font-size: 15px;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #00aaff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 170, 255, 0.2);
}

/* Ikony w polach (używając FontAwesome, lub podmień na własne tło) */
.input-group-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #888;
    pointer-events: none;
}

/* Ikona oka (toggle password visibility) */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
}
.password-toggle:hover { color: #333; }

/* --- Opcje (Zapamiętaj mnie / Nie pamiętasz hasła) --- */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.input-checkbox {
    margin-right: 8px;
}

.login-options a {
    color: #0056b3; /* Link ciemnoniebieski */
    text-decoration: none;
}
.login-options a:hover {
    text-decoration: underline;
}

/* --- Przycisk Zaloguj --- */
.btn-login {
    width: 100%;
    height: 50px;
    background-color: #00aaff !important; /* Przycisk jasnoniebieski */
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
    margin-bottom: 30px;
}

.btn-login:hover {
    background-color: #0099e6 !important;
}

.btn-login::after {
    content: ' \2192'; /* Biała strzałka */
    margin-left: 10px;
    font-size: 20px;
}

/* --- Stopka --- */
.login-footer {
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.login-footer p {
    margin: 0 0 5px 0;
    line-height: 1.4;
}