body.authentication-bg {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    isolation: isolate;
    background: #65afe0;
}

body.authentication-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.authentication-bg::before {
    z-index: -2;
    background-image: url('tlo_pt.png');
}

body.authentication-bg .account-pages {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 28px 0 24px !important;
}

.pt-auth-panel {
    display: grid;
    gap: 24px;
}

.pt-auth-brand { text-align: center; }
.pt-auth-logo { display: block; width: 100%; }
.pt-auth-logo img { filter: drop-shadow(0 4px 5px rgba(13, 53, 84, .28)); }

.pt-auth-tagline {
    margin: 14px 0 0;
    color: #f0f8fe;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px rgba(12, 53, 85, .55);
}

.pt-auth-panel .card {
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(236, 247, 255, .91), rgba(255, 255, 255, .89));
    color: #193d52;
    box-shadow: 0 18px 48px rgba(13, 54, 86, .18), inset 0 1px 0 rgba(255, 255, 255, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pt-auth-panel .card-body { padding: 30px 32px !important; }
.pt-auth-title {
    margin: 0 0 24px;
    color: #173e56;
    font-size: 26px;
    font-weight: 800 !important;
    line-height: 1.25;
}

.pt-auth-panel .form-label {
    margin-bottom: 7px;
    color: #274b63;
    font-weight: 600;
}

.pt-auth-panel form > .mb-3 { margin-bottom: 18px !important; }
.pt-auth-panel .form-control,
.pt-auth-panel .form-select {
    min-height: 50px;
    border-radius: 9px;
    background-color: rgba(255, 255, 255, .78);
    color: #193d52;
    font-size: 16px;
}

.pt-auth-panel .form-control::placeholder { color: #5a7387; opacity: 1; }
.pt-auth-panel .form-control:not(.is-invalid):not(.is-valid),
.pt-auth-panel .form-select:not(.is-invalid):not(.is-valid) { border-color: #c5d7e5; }

.pt-auth-panel .form-control:not(.is-invalid):not(.is-valid):focus,
.pt-auth-panel .form-select:not(.is-invalid):not(.is-valid):focus {
    border-color: #2989c4;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(41, 137, 196, .12);
}

.pt-auth-panel .pt-auth-login-form > .mb-3 { margin-bottom: 14px !important; }
.pt-auth-field { position: relative; }
.pt-auth-field .form-control,
.pt-auth-field .form-select { padding-left: 48px; }
.pt-auth-field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #57768c;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
}

.pt-auth-password-field .form-control { padding-right: 48px; }
.pt-auth-password-toggle {
    position: absolute;
    inset: 3px 3px 3px auto;
    display: grid;
    place-items: center;
    width: 44px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #57768c;
    font-size: 22px;
    cursor: pointer;
}

.pt-auth-password-toggle[hidden] { display: none; }
.pt-auth-password-toggle:hover { background: #e7f2fa; color: #174d72; }
.pt-auth-password-toggle:focus-visible { outline: 2px solid #2989c4; outline-offset: -2px; }

.pt-auth-panel .text-muted,
.pt-auth-panel .form-text:not(.text-success):not(.text-danger) { color: #41627a !important; }
.pt-auth-panel .invalid-feedback { color: #a52642; }
.pt-auth-panel .valid-feedback { color: #156443; }
.pt-auth-panel a.text-muted:hover,
.pt-auth-panel a.text-muted:focus-visible { color: #126faa !important; text-decoration: underline; }

.pt-auth-panel .alert { border-radius: 9px; overflow-wrap: anywhere; }
.pt-auth-panel .btn {
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 16px;
    white-space: normal;
}

.pt-auth-panel .btn-primary {
    --ct-btn-bg: #167cb8;
    --ct-btn-border-color: #218bc7;
    --ct-btn-hover-bg: #1474b0;
    --ct-btn-hover-border-color: #1474b0;
    --ct-btn-focus-shadow-rgb: 25, 131, 195;
    --ct-btn-active-bg: #10669f;
    --ct-btn-active-border-color: #10669f;
    --ct-btn-disabled-bg: #167cb8;
    --ct-btn-disabled-border-color: #218bc7;
    width: 100%;
    font-weight: 700;
    background-image: linear-gradient(135deg, #167cb8, #1475b5);
    box-shadow: 0 5px 12px rgba(18, 91, 139, .2), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.pt-auth-panel .btn-primary:hover,
.pt-auth-panel .btn-primary:focus,
.pt-auth-panel .btn-primary:active {
    background-image: linear-gradient(135deg, #1475b5, #10669f);
    box-shadow: 0 0 0 3px rgba(25, 131, 195, .18), 0 5px 12px rgba(18, 91, 139, .2);
}

.pt-auth-panel .pt-auth-secondary {
    width: 100%;
    border: 1px solid #b8cede;
    background: rgba(255, 255, 255, .25);
    color: #31556f;
    font-weight: 700;
}

.pt-auth-panel .pt-auth-secondary:hover,
.pt-auth-panel .pt-auth-secondary:focus-visible {
    border-color: #438cb9;
    background: #f7fcff;
    color: #174d72;
    box-shadow: 0 0 0 3px rgba(25, 131, 195, .12);
}

.pt-auth-recovery { margin-top: 16px; text-align: right; }
.pt-auth-recovery a.text-muted { color: #146eaa !important; font-weight: 600; }
.pt-auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: #647e91;
}

.pt-auth-divider::before,
.pt-auth-divider::after { content: ''; flex: 1; height: 1px; background: #d4e2ec; }

.footer.footer-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: static;
    height: auto;
    padding: 12px 24px 20px;
    color: #1d4059;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 8px #fff;
}

.footer.footer-alt small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 575px) {
    body.authentication-bg .account-pages { padding: 18px 0 !important; }
    .pt-auth-panel { gap: 20px; }
    .pt-auth-panel .card-body { padding: 26px 24px !important; }
    .pt-auth-tagline { font-size: 10px; }
    .pt-auth-title { font-size: 24px; }
}

.pt-auth-language {
    position: absolute;
    top: 22px;
    right: 28px;
    z-index: 20;
    color: #fff;
    font-size: 14px;
}

.pt-auth-language[hidden] { display: none; }
.pt-auth-language summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(15, 47, 75, .5);
}

.pt-auth-language summary::-webkit-details-marker { display: none; }
.pt-auth-language summary:hover,
.pt-auth-language[open] summary {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(19, 72, 112, .2);
}

.pt-auth-language summary:focus-visible,
.pt-auth-language-options button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.pt-auth-language summary > i { font-size: 19px; }
.pt-auth-flag {
    display: inline-block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 3px rgba(10, 40, 60, .18);
}

.pt-auth-flag-pl { background: linear-gradient(#fff 50%, #dc2943 50%); }
.pt-auth-flag-de { background: linear-gradient(#181818 33.333%, #d72831 33.333% 66.666%, #ffce00 66.666%); }
.pt-auth-flag-en { background: url('flag-en.svg') center / cover; }
.pt-auth-language-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 12px;
    background: #f4faff;
    color: #23465e;
    box-shadow: 0 8px 28px rgba(12, 47, 76, .22);
}

.pt-auth-language-options button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.pt-auth-language-options button:hover,
.pt-auth-language-options button[aria-pressed="true"] { background: #e0eef9; }
.pt-auth-language-options button:focus-visible { outline-color: #167cb8; outline-offset: -2px; }
.pt-auth-language-options button > i { margin-left: auto; visibility: hidden; }
.pt-auth-language-options button[aria-pressed="true"] > i { visibility: visible; }

@media (max-width: 767px) {
    .pt-auth-language { top: 12px; right: 12px; }
    body.authentication-bg .account-pages { padding-top: 72px !important; }
}
