
/* PRAWNIKOM PRO — AUTH DESIGN SYSTEM */

body:has(main.auth-shell) {
    background: #edf1f6 !important;
}

html body main.auth-shell {
    --auth-navy: #142641;
    --auth-gold: #c6a46a;
    --auth-border: #dce4ee;

    display: grid !important;
    grid-template-columns: minmax(0,1.05fr) minmax(0,1fr) !important;
    align-items: stretch !important;
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    min-width: 0 !important;
    min-height: 640px;
    height: auto !important;
    margin: 48px auto !important;
    padding: 0 !important;
    gap: 0 !important;
    background: #fff;
    border: 1px solid #dce4ee;
    border-radius: 0 !important;
    box-shadow: 0 18px 60px #14264112;
    box-sizing: border-box;
}

.auth-shell * {
    box-sizing: border-box;
}

/* LEWA STRONA */

html body .auth-shell .auth-intro {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    padding: 56px 48px !important;
    margin: 0 !important;
    background: linear-gradient(
        145deg,
        #0c192c,
        #142641 60%,
        #203957
    ) !important;
    color: #fff !important;
    border: 0 !important;
    border-top: 4px solid #c6a46a !important;
    border-radius: 0 !important;
}

/* LOGOTYP */

.auth-shell .auth-brand {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    color: #fff !important;
    text-decoration: none !important;
}

.auth-shell .auth-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid #c6a46a;
    color: #c6a46a !important;
    font-size: 32px;
    background: #ffffff08;
}

.auth-shell .auth-brand strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #fff !important;
    line-height: 1.2;
}

.auth-shell .auth-brand small {
    display: block;
    margin-top: 6px;
    color: #c6a46a !important;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* TEKST POWITALNY */

html body .auth-intro h1 {
    font-family: Georgia, serif !important;
    font-size: clamp(30px,3vw,44px) !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin: 0 0 24px !important;
    max-width: 100%;
    overflow-wrap: break-word;
}

.auth-shell .auth-intro > p {
    color: #cbd5e1 !important;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 28px;
}

/* KORZYSCI */

.auth-shell .auth-benefits {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding: 26px 0;
    margin: 0;
    border-top: 1px solid #ffffff20;
}

.auth-shell .auth-benefits > span {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    color: #e2e8f0 !important;
    font-size: 14px;
    line-height: 1.6;
}

.auth-shell .auth-benefits i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #c6a46a60;
    background: #c6a46a12;
    color: #c6a46a !important;
    font-size: 13px;
    font-style: normal;
}

.auth-shell .auth-back {
    display: inline-flex;
    margin-top: 32px;
    color: #c6a46a !important;
    font-size: 13px;
    text-decoration: none !important;
}

.auth-shell .auth-back:hover {
    color: #fff !important;
}

/* PRAWA STRONA — FORMULARZ */

html body .auth-shell .auth-card {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 56px 48px !important;
    background: #fff !important;
    color: #142641 !important;
    border: 0 !important;
    border-top: 4px solid #142641 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .auth-card > header {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 0 28px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.auth-card > header > small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #96702d !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.auth-card > header > small::before {
    content: "";
    width: 24px;
    height: 2px;
    background: #c6a46a;
}

html body .auth-card h2 {
    font-family: Georgia, serif !important;
    font-size: 38px !important;
    font-weight: 500;
    line-height: 1.2;
    color: #142641 !important;
    margin: 14px 0 !important;
}

.auth-card > header > p {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b !important;
    margin: 0;
}

/* POLA FORMULARZA */

html body .auth-shell .auth-form {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.auth-shell .auth-form > label {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0;
    color: #142641 !important;
}

.auth-shell .auth-form label > span {
    font-size: 13px;
    font-weight: 600;
    color: #142641 !important;
}

html body .auth-shell .auth-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
html body .auth-shell .auth-form select {
    display: block;
    width: 100% !important;
    min-width: 0;
    height: 52px !important;
    padding: 0 16px !important;
    background: #f8fafc !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    font-family: inherit;
    font-size: 15px !important;
    box-shadow: none !important;
    transition: border-color .2s, background .2s;
}

.auth-shell .auth-form input::placeholder {
    color: #64748b;
    font-size: 13px;
}

html body .auth-shell .auth-form input:focus,
html body .auth-shell .auth-form select:focus {
    border-color: #96702d !important;
    background: #fff !important;
    outline: 2px solid #c6a46a50 !important;
    outline-offset: 1px;
}

/* POKAZ HASLO */

html body .auth-shell [data-login-toggle] {
    align-self: flex-end;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: auto !important;
    min-height: 32px !important;
    padding: 4px 0 !important;
    margin: -12px 0 0 !important;
    background: transparent !important;
    color: #475569 !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    box-shadow: none !important;
    cursor: pointer;
}

.auth-shell [data-login-toggle]::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 70% 20%;
    transform: rotate(45deg);
}

/* PRZYCISK LOGOWANIA */

html body .auth-shell .auth-form button[type="submit"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 54px !important;
    padding: 14px 20px !important;
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    border-bottom: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

html body .auth-shell .auth-form button[type="submit"]:hover {
    background: #203957 !important;
}

.auth-shell button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* KOMUNIKATY */

.auth-shell .auth-status:empty {
    display: none !important;
}

.auth-shell .auth-status:not(:empty) {
    display: block;
    padding: 12px 16px;
    margin: 0;
    color: #142641;
    background: #f1f5f9;
    border-left: 3px solid #c6a46a;
    font-size: 13px;
    line-height: 1.6;
}

.auth-shell .auth-status.error,
.auth-shell .auth-status.is-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #dc2626;
}

/* REJESTRACJA */

.auth-shell .auth-switch {
    margin: 28px 0 0 !important;
    padding: 24px 0 0 !important;
    border-top: 1px solid #dce4ee;
    text-align: center;
    font-size: 14px;
    color: #64748b !important;
}

.auth-shell .auth-switch a {
    color: #142641 !important;
    font-weight: 700;
    text-decoration: none !important;
}

.auth-shell .auth-switch a:hover {
    color: #96702d !important;
}

/* INFORMACJA O SRODOWISKU TESTOWYM */

.auth-shell .auth-demo {
    padding: 14px 16px;
    margin-top: 24px;
    background: #faf8f3;
    border: 1px solid #e8dfce;
    border-left: 3px solid #c6a46a;
    color: #786444;
    font-size: 12px;
    line-height: 1.7;
}

/* ROZMIARY IKON */

.auth-shell svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* TABLET */

@media (max-width: 1000px) {

    html body main.auth-shell {
        width: calc(100% - 32px) !important;
        margin: 24px auto !important;
    }

    html body .auth-shell .auth-intro,
    html body .auth-shell .auth-card {
        padding: 36px 28px !important;
    }
}

/* TELEFON */

@media (max-width: 720px) {

    html body main.auth-shell {
        display: flex !important;
        flex-direction: column !important;
        width: calc(100% - 24px) !important;
        min-height: 0;
        margin: 12px auto !important;
    }

    html body .auth-shell .auth-intro {
        padding: 26px 22px !important;
    }

    .auth-shell .auth-brand {
        margin-bottom: 24px;
    }

    html body .auth-intro h1 {
        font-size: 28px !important;
    }

    .auth-shell .auth-intro > p {
        font-size: 14px;
    }

    .auth-shell .auth-benefits {
        gap: 12px;
        padding: 16px 0;
    }

    .auth-shell .auth-back {
        margin-top: 12px;
    }

    html body .auth-shell .auth-card {
        padding: 32px 22px !important;
        border-top: 0 !important;
    }

    html body .auth-card h2 {
        font-size: 30px !important;
    }

    html body .auth-shell .auth-form input:not([type="hidden"]) {
        font-size: 16px !important;
    }
}


/* AUTH — NAPRAWA PODWOJNEGO SELECTA */

html body .auth-shell .auth-form select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    appearance: auto !important;
    background: #f8fafc !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    cursor: pointer;
}

/* Ukrycie dodatkowego interfejsu Smart Select */

html body .auth-shell .smart-select-trigger,
html body .auth-shell .smart-select-menu,
html body .auth-shell .smart-select-panel,
html body .auth-shell [data-smart-select-trigger],
html body .auth-shell [data-smart-select-menu],
html body .auth-shell select + button,
html body .auth-shell select + [role="combobox"] {
    display: none !important;
}

/* Kontener pola */

html body .auth-shell .smart-select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Wyrownanie formularza */

html body .auth-shell .auth-form label {
    width: 100% !important;
    min-width: 0 !important;
}

html body .auth-shell .auth-form select:focus {
    border-color: #96702d !important;
    outline: 2px solid #c6a46a50 !important;
}

