/* Import czcionki Lato z wariantem Thin 100 (zwykłym i kursywą) */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;1,100;1,300;1,400&display=swap');

:root {
    --kolor-tla-strony: #fbfbfb;
    --tlo-menu-polprzezroczyste: rgba(251, 251, 251, 0.85);
    --rozmycie-tla: blur(10px);
    --kolor-linii-menu: #f0f0f0;
    --kolor-obrysu-inputa: #8898ee;
}

/* --- Globalna zmiana czcionki na Lato --- */
html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, .uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6 {
    font-family: 'Lato', sans-serif !important;
}

/* Tło całej strony i pełna wysokość */
html, body {
    background-color: var(--kolor-tla-strony);
    min-height: 100vh;
    margin: 0;
}

.uk-card {
    border-radius: 25px;
    overflow: hidden;
}

/* ================================================== */
/* STAN DOMYŚLNY INPUTA (Nieaktywny)                  */
/* ================================================== */
.uk-input {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    height: 48px !important;
    background-color: #ffffff !important;
    color: #333333 !important;
    transition: all 0.2s ease-in-out !important;
}

/* ================================================== */
/* STAN AKTYWNY INPUTA (Po kliknięciu / Focus)        */
/* ================================================== */
.uk-input:focus {
    border-color: #8898ee !important;
    box-shadow: 0 0 0 4px rgba(136, 152, 238, 0.2) !important;
    outline: none !important;
}

.uk-inline:focus-within .uk-form-icon {
    color: #8898ee !important;
}

/* ================================================== */
/* PRZYCISK ZALOGUJ (100% ORYGINALNY STYL)            */
/* ================================================== */
.uk-button-primary {
    background-color: transparent !important;
    color: #4a90e2 !important; /* Jasnoniebieski tekst */
    border: 1px solid #e1effe !important; /* Bardzo jasna, delikatna niebieska ramka */
    border-radius: 6px !important;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s ease;
}

.uk-button-primary:hover,
.uk-button-primary:focus {
    background-color: rgba(74, 144, 226, 0.04) !important; /* Subtelne niebieskie zabarwienie tła */
    color: #357abd !important; /* Ciemniejszy, wyraźny niebieski tekst */
    border-color: #8bb4e5 !important; /* Ciemniejsza, wyraźna niebieska ramka */
}

/* ================================================== */
/* DOPASOWANIE IKON W INPUTACH                        */
/* ================================================== */
#login-form-container .input-icon-badge {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

#login-form-container .input-icon-badge .uk-form-icon {
    position: static;
    width: auto;
    height: auto;
}

#login-form-container .input-icon-badge ~ .uk-input {
    padding-left: 40px !important;
}

#login-form-container .uk-input[name="password"] {
    padding-right: 40px !important;
}

#login-form-container .password-right-actions {
    display: contents;
}

#login-form-container .eye-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

#login-form-container .eye-icon-badge .uk-form-icon {
    position: static;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Odstęp między polem hasła a linkiem "Zapomniałeś hasła?" */
#login-form-container .password-right-actions .uk-margin-small-bottom {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

/* Zmniejszony odstęp nad przyciskiem ZALOGUJ (z 40px z UIkit na 14px) */
#login-form-container .uk-margin-medium-top {
    margin-top: 14px !important;
}

/* Mniejszy odstęp pod polem hasła przed przyciskiem */
#login-form-container form > .uk-margin:has(input[name="password"]) {
    margin-bottom: 6px !important;
}

/* ================================================== */
/* CYTAT NA GÓRZE KARTY (LATO THIN 100 + BIAŁE TŁO)   */
/* ================================================== */

/* Zamiana formularza w kolumnę flex, żeby przenieść cytat na górę */
#login-form-container form {
    display: flex;
    flex-direction: column;
}

/* Rozpuszcza wrapper w CSS, dzięki czemu cytat i przycisk są rodzeństwem dla pól input */
#login-form-container .form-footer-wrapper {
    display: contents;
}

/* Kontener cytatu przeniesiony nad pole Login — zmniejszony dolny odstęp */
#login-form-container .footer-text {
    order: -1;
    position: relative;
    background-color: #ffffff;
    padding: 12px 0px 6px 0px;
    margin-bottom: 6px;
	text-align: center;
}

/* Górny prawy cudzysłów w tle */
#login-form-container .footer-text::before {
    content: "\201C";
    position: absolute;
    top: -90px;
    right: -40px;
    font-family: Georgia, serif !important;
    font-size: 25rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.025);
    pointer-events: none;
    user-select: none;
}

/* Dolny lewy cudzysłów w tle (jak na zrzucie ekranu) */
#login-form-container .footer-text::after {
    content: "\201C";
    position: absolute;
    bottom: -14px;
    left: 10px;
    font-family: Georgia, serif !important;
    font-size: 36rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.045);
    pointer-events: none;
    user-select: none;
}

/* Treść cytatu */
#login-form-container .footer-text .quote-content {
    position: relative;
    z-index: 1;
    font-family: 'Lato', sans-serif !important;
    font-weight: 300 !important;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #2b303a;
    text-align: center;
    white-space: pre-line; /* Interpretuje znak \n jako nową linię */
    margin: 0 0 8px 0;
    letter-spacing: 0.2px;
}

/* Autor przesunięty w prawo pod cytatem */
#login-form-container .footer-text .quote-author {
    position: relative;
    z-index: 1;
    display: block;
    font-family: 'Lato', sans-serif !important;
    font-weight: 400;
    font-style: italic;
    font-size: 1rem;
    color: #4a5568;
    text-align: right;
    padding-right: 0;
}