/* ==========================================================================
   STREFA CZŁONKÓW - STYLE
   ========================================================================== */

/* Sekcje pudełkowe */
.box-section {
    padding: 20px;
    margin-bottom: 20px;
    color: #222;
    font-family: "Poppins", sans-serif;
}

.box-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
    font-family: Poppins;
}

.box-section a {
    color: #222;
    font-family: "Poppins";
    font-weight: 300;
    text-decoration: none;
}

.box-section a:hover {
    text-decoration: none;
}

/* Kolory boxów */
.box-blue {
    background: #F1F5F9;
}

.box-red {
    background: #FFF5F8;
}

.box-problemy-z-logowaniem {
    line-height: 2;
}

/* Pogrubienie tekstu */
.pogrubienie {
    font-weight: 500;
}

/* ==========================================================================
   PRZYCISKI
   ========================================================================== */

.button-link,
.logged-panel .btn {
    display: inline-block;
    background: #222;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    font-size: 13px !important;
    transition: background 0.3s ease;
    margin: 5px 5px 5px 0;
}

.button-link:hover,
.logged-panel .btn:hover {
    background: #444;
    text-decoration: none;
}

.button-link-ebok {
    display: inline-block;
    background: #222;
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.button-link-ebok:hover {
    background: #444;
    text-decoration: none;
}

.btn-wyloguj {
    background: #666 !important;
}

.btn-wyloguj:hover {
    background: #888 !important;
}

/* ==========================================================================
   FORMULARZ LOGOWANIA
   ========================================================================== */

.login-form {
    margin-top: 15px;
}

.login-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #222;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 6px 0 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
    border-color: #333;
}

.login-form input[type="submit"] {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.3s ease;
}

.login-form input[type="submit"]:hover {
    background: #333;
}

/* Kontener hasła z przyciskiem pokazywania */
.password-wrap {
    position: relative;
}

.password-wrap input[type="password"],
.password-wrap input[type="text"] {
    padding-right: 72px;
}

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1;
    color: #000;
    font-weight: 500;
}

.toggle-pass:hover {
    color: #333;
}

.toggle-pass:focus {
    outline: 2px dashed #333;
    outline-offset: 2px;
}

/* Notatka pod polem loginu */
.login-note {
    font-size: 11px;
    color: #333;
    margin: 3px 0 12px 0;
    font-style: italic;
    line-height: 16px;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.login-note::before {
    content: "ℹ️";
    font-size: 13px;
    line-height: 16px;
}

/* Komunikat błędu */
.login-error {
    background: #ffcccc;
    color: #900;
    border: 1px solid #d33;
    padding: 10px;
    margin-top: 10px;
    font-weight: 600;
    display: none;
    border-radius: 4px;
}

/* ==========================================================================
   PANEL ZALOGOWANEGO
   ========================================================================== */

.logged-panel {
    margin-top: 12px;
}

.logged-panel p {
    margin: 0 0 10px;
}

/* Ukryj formularz dla zalogowanych (body z klasą logged-in) */
body.logged-in .login-form-wrap {
    display: none;
}

/* Pokaż panel tylko dla zalogowanych */
.logged-panel {
    display: none;
}

body.logged-in .logged-panel {
    display: block;
}

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 768px) {
    .box-section {
        padding: 15px;
    }

    .box-section h3 {
        font-size: 18px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"] {
        font-size: 16px; /* Zapobiega zoom na iOS */
    }
}
