/* =========================
   LOGIN / AUTH PANEL BASE
========================= */

#arkusz-login {
    max-width: 420px;
    margin: 50px auto 80px auto;
    padding: 25px;
    background-color: #1f1f1f;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

/* =========================
   MODAL OVERRIDE (KLUCZ)
========================= */

.custom-modal-form #arkusz-login {
    margin: 0;
    max-width: 100%;
    width: 30%;
    box-shadow: none;
    border-radius: 10px;
}

/* dodatkowe dopasowanie samego okna */
.custom-modal-content-form {
    background-color: #1f1f1f;
    color: #e0e0e0;
	max-width: 100%;
}

/* =========================
   SEKCJE FORMULARZY
========================= */

.form-section {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
}

/* =========================
   INPUTY
========================= */

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #4caf50;
    border-radius: 6px;
    background-color: #1f1f1f;
    color: #e0e0e0;
    box-sizing: border-box;
    transition: 0.3s ease;
}

input:focus {
    border-color: #a0ff90;
    box-shadow: 0 0 8px rgba(76,175,80,0.5);
    background-color: #2a2a2a;
    outline: none;
}

/* =========================
   BUTTONY
========================= */

button, a.btn-facebook {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    color: white;
    margin-top: 8px;
    cursor: pointer;
    transition: 0.3s;
}

/* login */
.btn-login {
    background-color: #4caf50;
}
.btn-login:hover {
    background-color: #3a8a3a;
}

/* toggle */
.btn-toggle {
    background-color: #66bb66;
}
.btn-toggle:hover {
    background-color: #4da64d;
}

/* action */
.btn-action {
    background-color: #4caf50;
}
.btn-action:hover {
    background-color: #3a8a3a;
}

/* =========================
   KOMUNIKATY
========================= */

.success {
    background-color: #2c2c2c;
    color: #a0ff90;
    border: 1px solid #4caf50;
    padding: 10px;
    border-radius: 6px;
}

.error {
    background-color: #2c2c2c;
    color: #ff6666;
    border: 1px solid #ff4444;
    padding: 10px;
    border-radius: 6px;
}

/* =========================
   MODAL BACKDROP LOOK (opcjonalne)
========================= */

.custom-modal-form {
    backdrop-filter: blur(3px);
}



.modal-form {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-form.show {
    display: flex;
}

.modal-box-form {
    position: relative;

    background: transparent !important;  /* 🔥 zamiast none */
    color: #f1f1f1 !important;
        max-height: calc(200vh - 80px) !important;
    width: 450px !important;
    max-width: 90vw !important;

    border-radius: 0 !important;         /* usuwa efekt pudełka */
    box-shadow: none !important;         /* 🔥 KLUCZ – usuwa „widoczność” */

    animation: modalFade 0.3s ease !important;

    overflow-y: auto !important;
}

.login-modal-close-form {
    position: absolute;
    top: 55px;
    right: 18px;

    width: 32px;
    height: 32px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;
    color: #4caf50;

    border: 1px solid #4caf50;
    border-radius: 50%;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    transition: all 0.25s ease;

    z-index: 10;
}

.login-modal-close-form:hover {
    background: #4caf50;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(76,175,80,0.4);
}

@media (max-width: 768px) {
    .login-modal-close-form {
        top: 70px;
        right: 20px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}