html, body { min-height: 100%; }
body { margin: 0; }

.ek-login-page, .ek-login-page * { box-sizing: border-box; }

.ek-login-page {
    --blue: #075bcc;
    --text: #24344e;
    --muted: #7785a2;
    --border: #d7dfeb;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background-image: url('/login-page/assets/background.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ek-login-wrap {
    position: relative;
    z-index: 5;
    width: 360px;
    max-width: 100%;
}


/* GŁÓWNA ZMIANA: box ma maksymalnie 800 x 800 px */
.ek-login-card {
    width: 360px;
    height: 360px;
    max-width: 100%;
    margin: 0 auto;
    padding: 32px 26px 26px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(218,224,233,.72);
    border-radius: 20px;
    box-shadow: 0 22px 55px rgba(42,58,83,.10), 0 5px 15px rgba(42,58,83,.05);
}


.ek-brand {
    text-align: center;
    margin-bottom: 20px;
}


.ek-logo {
    display: block;
    width: 285px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


.ek-subtitle {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
}


.ek-field {
    position: relative;
    display: flex;
    height: 44px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .18s, box-shadow .18s;
}


.ek-field:focus-within {
    border-color: #82afe8;
    box-shadow: 0 0 0 3px rgba(7,91,204,.08);
}


.ek-field-icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    background: linear-gradient(#fbfcfe, #f5f7fa);
    border-radius: 10px 0 0 10px;
}


.ek-field-icon svg {
    width: 19px;
    height: 19px;
    fill: #314668;
}


.ek-input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 26px;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}


.ek-input::placeholder { color: #8490a8; opacity: 1; }
.ek-input-password { padding-right: 48px; }


.ek-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
}


.ek-password-toggle svg { width: 100%; height: 100%; fill: #526989; }
.ek-password-toggle:hover svg { fill: var(--blue); }
.ek-eye-closed { display: none; }
.ek-password-toggle.is-visible .ek-eye-open { display: none; }
.ek-password-toggle.is-visible .ek-eye-closed { display: block; }


.ek-login-button {
    position: relative;
    width: 100%;
    height: 44px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #075fd6, #0757c7);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(7,91,204,.15);
}


.ek-login-button:hover { background: linear-gradient(135deg, #0757c7, #064dac); }


.ek-login-button svg {
    position: absolute;
    right: 15px;
    width: 19px;
    height: 19px;
    fill: #fff;
}


.ek-footer {
    padding: 30px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    color: #7886a3;
    font-size: 12px;
}


.ek-footer-logo { width: 100px; max-height: 60px; object-fit: contain; }
.ek-footer-separator { width: 1px; height: 34px; background: #9ca8bc; }


/* Na niższych ekranach box automatycznie się skaluje,
   żeby nie wymuszać 800px wysokości na telefonie/laptopie. */
@media (max-width: 600px) {
    /* .ek-login-page { align-items: flex-start; padding: 25px 15px; }

    .ek-login-card {
        width: 100%;
        padding: 42px 22px 35px;
        border-radius: 17px;
    }

    .ek-subtitle { font-size: 17px; }
    .ek-brand { margin-bottom: 34px; }

    .ek-field { height: 64px; margin-bottom: 18px; }
    .ek-field-icon { flex-basis: 66px; }
    .ek-field-icon svg { width: 25px; height: 25px; }
    .ek-input { padding-left: 19px; font-size: 18px; }
    .ek-input-password { padding-right: 58px; }

    .ek-login-button { height: 66px; font-size: 21px; }

    .ek-footer {
        flex-wrap: wrap;
        gap: 12px 18px;
        font-size: 12px;
        text-align: center;
    }

    .ek-footer-logo { width: 145px; flex-basis: 100%; } */
}