:root {
    --bg: #06101e;
    --surface: rgba(10, 24, 43, .92);
    --surface-2: rgba(13, 31, 55, .78);
    --border: rgba(151, 183, 224, .16);
    --border-strong: rgba(73, 144, 255, .34);
    --text: #f7f9fd;
    --muted: #9cafc8;
    --primary: #2f7df6;
    --primary-2: #5b9bff;
    --accent: #21d79b;
    --danger: #ff5571;
    --shadow: 0 30px 80px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { border: 0; }

.background { position: fixed; inset: 0; z-index: -5; overflow: hidden; background: #06101e; }
.gradient { position: absolute; width: 58vw; height: 58vw; border-radius: 50%; filter: blur(5px); opacity: .55; }
.gradient-one { left: -18vw; top: -20vw; background: radial-gradient(circle, rgba(47,125,246,.32), transparent 68%); animation: driftOne 14s ease-in-out infinite alternate; }
.gradient-two { right: -20vw; bottom: -24vw; background: radial-gradient(circle, rgba(217,4,41,.20), transparent 68%); animation: driftTwo 17s ease-in-out infinite alternate; }
.grid-overlay { position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 88%); }
.particles { position: absolute; inset: 0; }
.particles span { position: absolute; bottom: -12px; border-radius: 50%; background: rgba(111,167,255,.34); animation: rise linear infinite; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(500px, 1.15fr) minmax(430px, .85fr); }
.brand-panel { position: relative; padding: clamp(42px, 5vw, 78px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.brand-panel::after { content: ''; position: absolute; width: 520px; height: 520px; right: -260px; top: 50%; transform: translateY(-50%); border: 1px solid rgba(86,151,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(86,151,255,.03), 0 0 0 140px rgba(86,151,255,.025); }
.brand-panel__content { width: min(720px, 100%); position: relative; z-index: 1; }
.brand-mark { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(70px, 10vh, 130px); }
.brand-mark__logo { width: 78px; height: 78px; display: grid; place-items: center; padding: 8px; border-radius: 23px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 38px rgba(0,0,0,.23); }
.brand-mark__logo img { width: 100%; height: 100%; object-fit: contain; animation: logoBreath 4.5s ease-in-out infinite; }
.eyebrow { display: block; color: #76aaff; font-size: 12px; letter-spacing: .17em; font-weight: 700; }
.brand-mark h1 { margin: 6px 0 0; font-size: clamp(25px, 2.2vw, 34px); letter-spacing: -.04em; }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #c8d8ed; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(33,215,155,.1); animation: pulseDot 2s infinite; }
.brand-copy h2 { margin: 24px 0 20px; font-size: clamp(46px, 5.2vw, 78px); line-height: 1.03; letter-spacing: -.06em; max-width: 850px; }
.brand-copy h2 span { color: #6da5ff; }
.brand-copy p { margin: 0; max-width: 650px; color: var(--muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 48px; }
.feature-card { display: flex; gap: 14px; min-width: 0; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.feature-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.065); border-color: rgba(80,145,255,.35); }
.feature-card > span { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(47,125,246,.15); color: #72a7ff; font-size: 23px; }
.feature-card div { min-width: 0; }
.feature-card strong, .feature-card small { display: block; }
.feature-card strong { font-size: 14px; margin-bottom: 5px; }
.feature-card small { color: var(--muted); font-size: 12px; line-height: 1.55; }
.brand-panel__footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #7188a6; font-size: 12px; }
.brand-panel__footer .material-icons-round { font-size: 18px; color: #4c8fff; }

.login-panel { min-width: 0; padding: 35px clamp(28px, 5vw, 76px); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.login-card { width: min(520px, 100%); padding: clamp(30px, 4vw, 48px); border-radius: 30px; background: linear-gradient(165deg, rgba(14,32,56,.95), rgba(7,19,35,.96)); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(24px); animation: cardIn .75s cubic-bezier(.2,.75,.2,1) both; }
.mobile-brand { display: none; }
.login-header { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
.login-header__icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #82b0ff; background: linear-gradient(145deg, rgba(47,125,246,.2), rgba(47,125,246,.08)); border: 1px solid rgba(90,151,255,.2); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.login-header h2 { margin: 5px 0 8px; font-size: clamp(30px, 3vw, 41px); line-height: 1.08; letter-spacing: -.045em; }
.login-header p { margin: 0; color: var(--muted); font-size: 14px; }
.field-group { margin-bottom: 21px; }
.field-group > label { display: block; margin: 0 0 9px 3px; font-size: 13px; font-weight: 600; color: #d9e5f5; }
.field-control { position: relative; }
.field-icon { position: absolute; z-index: 2; top: 50%; left: 17px; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; color: #7087a5; font-size: 21px; pointer-events: none; transition: color .2s ease; }
.field-control input { display: block; width: 100%; height: 58px; padding: 0 54px 0 52px; border-radius: 15px; border: 1px solid rgba(146,178,220,.15); outline: 0; color: #fff; background: rgba(3,13,26,.55); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease; }
.field-control input::placeholder { color: #667b97; }
.field-control input:hover { border-color: rgba(126,170,231,.27); background: rgba(4,16,31,.7); }
.field-control input:focus { border-color: #4c91ff; background: rgba(4,17,33,.86); box-shadow: 0 0 0 4px rgba(47,125,246,.12), 0 12px 28px rgba(0,0,0,.18); }
.field-control:focus-within .field-icon { color: #6da5ff; }
.showPassword { position: absolute; z-index: 3; right: 9px; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #758aa5; background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease; }
.showPassword:hover { color: #fff; background: rgba(255,255,255,.07); }
.showPassword .material-icons-round { font-size: 21px; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 3px 0 25px; }
.remember { display: inline-flex; align-items: center; gap: 10px; color: #aabbd1; font-size: 13px; cursor: pointer; user-select: none; }
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.checkmark { flex: 0 0 20px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; border: 1px solid rgba(142,175,217,.28); background: rgba(255,255,255,.035); transition: .2s ease; }
.checkmark .material-icons-round { font-size: 14px; color: white; transform: scale(0); transition: transform .2s ease; }
.remember input:checked + .checkmark { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,125,246,.12); }
.remember input:checked + .checkmark .material-icons-round { transform: scale(1); }
.loginButton { position: relative; width: 100%; min-height: 59px; padding: 0 21px; display: flex; align-items: center; justify-content: center; gap: 11px; border-radius: 15px; color: white; background: linear-gradient(135deg, #246fe8, #448fff); font-weight: 700; font-size: 15px; cursor: pointer; overflow: hidden; box-shadow: 0 14px 34px rgba(30,103,223,.3); transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.loginButton::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.22) 48%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
.loginButton:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 38px rgba(30,103,223,.4); }
.loginButton:hover::before { transform: translateX(120%); }
.loginButton:active { transform: translateY(0); }
.loginButton:disabled { opacity: .75; cursor: wait; transform: none; }
.loginButton .material-icons-round { font-size: 20px; transition: transform .2s ease; }
.loginButton:hover .material-icons-round { transform: translateX(4px); }
.loader { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.login-message { min-height: 23px; margin: 15px 0 0; padding: 0; text-align: center; font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(-5px); transition: .2s ease; }
.login-message:not(:empty) { opacity: 1; transform: none; }
.login-message.error { color: #ff7f94; }
.login-message.success { color: #48e0b0; }
.login-message.loading { color: #8eb8ff; }
.security-note { margin-top: 23px; padding: 14px 15px; display: flex; gap: 11px; align-items: flex-start; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.065); }
.security-note .material-icons-round { flex: 0 0 20px; font-size: 19px; color: #6689b8; }
.security-note p { margin: 0; color: #7f94af; font-size: 11px; line-height: 1.6; }
.login-footer { margin-top: 22px; color: #5f7592; font-size: 11px; }

@keyframes cardIn { from { opacity: 0; transform: translateY(28px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes logoBreath { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes pulseDot { 0%,100% { box-shadow: 0 0 0 4px rgba(33,215,155,.1); } 50% { box-shadow: 0 0 0 8px rgba(33,215,155,0); } }
@keyframes driftOne { to { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes driftTwo { to { transform: translate(-8vw, -7vh) scale(1.08); } }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 10% { opacity: .5; } to { transform: translateY(-110vh); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .login-panel { min-height: 100vh; padding: 30px 22px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
    .mobile-brand img { width: 48px; height: 48px; object-fit: contain; }
    .mobile-brand strong, .mobile-brand span { display: block; }
    .mobile-brand strong { font-size: 16px; }
    .mobile-brand span { color: var(--muted); font-size: 11px; margin-top: 2px; }
}

@media (max-width: 560px) {
    .login-panel { padding: 18px 14px; justify-content: flex-start; }
    .login-card { margin-top: 12px; padding: 25px 19px; border-radius: 24px; }
    .login-header { gap: 13px; margin-bottom: 28px; }
    .login-header__icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 14px; font-size: 22px; }
    .login-header h2 { font-size: 29px; }
    .login-header p { font-size: 12px; }
    .eyebrow { font-size: 10px; }
    .field-control input { height: 56px; font-size: 14px; }
    .login-footer { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}



/* =========================================================
   RESET HASŁA V1.3
   ========================================================= */

body.modal-open {
    overflow: hidden;
}

.forgot-password-button {
    margin: -11px 0 17px auto;
    padding: 7px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #79aaf3;
    font: 650 12px Poppins, sans-serif;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.forgot-password-button:hover {
    color: #a9caff;
    transform: translateX(2px);
}

.forgot-password-button .material-icons-round {
    font-size: 17px;
}

.reset-password-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 18px;
    display: grid;
    place-items: center;
}

.reset-password-modal.hidden {
    display: none;
}

.reset-password-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 8, 18, .78);
    backdrop-filter: blur(12px);
    animation: resetFadeIn .22s ease both;
}

.reset-password-card {
    position: relative;
    width: min(500px, 100%);
    max-height: calc(100vh - 36px);
    padding: 31px;
    overflow-y: auto;
    border: 1px solid rgba(128, 169, 226, .18);
    border-radius: 25px;
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(65, 136, 244, .16),
            transparent 34%
        ),
        linear-gradient(
            165deg,
            rgba(14, 31, 53, .99),
            rgba(7, 20, 36, .99)
        );
    box-shadow: 0 35px 110px rgba(0, 0, 0, .58);
    animation: resetCardIn .3s cubic-bezier(.2,.75,.2,1) both;
}

.reset-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
    color: #8398b4;
    cursor: pointer;
}

.reset-close:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.reset-icon {
    width: 64px;
    height: 64px;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(85, 151, 250, .2);
    border-radius: 19px;
    background: rgba(65, 135, 238, .11);
    color: #70a9ff;
    font-size: 31px !important;
    box-shadow: 0 13px 30px rgba(30, 100, 210, .12);
}

.reset-eyebrow {
    display: block;
    margin-top: 20px;
    color: #76a8f1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.reset-password-card h2 {
    margin: 7px 0 9px;
    font-size: 25px;
    letter-spacing: -.035em;
}

.reset-description {
    margin: 0;
    color: #91a4bf;
    font-size: 13px;
    line-height: 1.65;
}

.reset-password-card form {
    margin-top: 22px;
}

.reset-password-card label {
    display: block;
    margin: 0 0 8px 2px;
    color: #d4e1f2;
    font-size: 12px;
    font-weight: 650;
}

.reset-field {
    height: 51px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(133, 170, 221, .16);
    border-radius: 13px;
    background: rgba(3, 13, 25, .58);
    transition: border-color .2s, box-shadow .2s;
}

.reset-field:focus-within {
    border-color: #4d91ff;
    box-shadow: 0 0 0 4px rgba(48, 125, 245, .1);
}

.reset-field > span {
    color: #7289a8;
    font-size: 20px;
}

.reset-field input {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f0f6ff;
    font: 500 13px Poppins, sans-serif;
}

.reset-field input::placeholder {
    color: #617691;
}

.reset-field input:disabled {
    opacity: .7;
}

.reset-message {
    min-height: 20px;
    margin: 11px 0 0;
    color: #8ea4c1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.reset-message.error {
    color: #ff7b91;
}

.reset-message.success {
    color: #54dfac;
}

.reset-submit {
    width: 100%;
    min-height: 51px;
    margin-top: 9px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #3177e5, #559bff);
    color: #fff;
    font: 750 13px Poppins, sans-serif;
    cursor: pointer;
    box-shadow: 0 13px 30px rgba(38, 105, 214, .25);
}

.reset-submit:disabled {
    opacity: .82;
    cursor: wait;
}

.reset-submit.sent {
    background: linear-gradient(135deg, #17895f, #35c58e);
}

.reset-security-note {
    margin-top: 17px;
    padding: 12px 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: 12px;
    background: rgba(255,255,255,.028);
    border: 1px solid rgba(255,255,255,.055);
}

.reset-security-note > span {
    color: #6f91bd;
    font-size: 18px;
}

.reset-security-note p {
    margin: 0;
    color: #748aa8;
    font-size: 10px;
    line-height: 1.55;
}

.spin {
    animation: resetSpin .8s linear infinite;
}

@keyframes resetFadeIn {
    from { opacity: 0; }
}

@keyframes resetCardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }
}

@keyframes resetSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
    .reset-password-modal {
        padding: 9px;
    }

    .reset-password-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .reset-password-card h2 {
        font-size: 22px;
    }

    .reset-icon {
        width: 56px;
        height: 56px;
        font-size: 28px !important;
    }
}
