@font-face {
    font-family: 'Sanuk Pro';
    src: url('../fonts/SanukPro-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --breakpointSm: 500px;
}

body {
    background: #f5f7f9 !important;
    font-family: Roboto, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    margin: 0;
}

.title {
    text-align: center;
    color: #67727E;
    font-family: "Sanuk Pro", Roboto, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: 0.96px;
    margin-bottom: 1rem;
    margin-top: 0;
}

.title-small {
    font-size: 16px;
}

.euczelnia-input {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5rem;
    text-decoration: none;
    text-transform: none;
    border-radius: 0.25rem;
    width: 100%;
    max-width: calc(100% - 2rem);
    color: #3F4D59 !important;
    padding: 1rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.38);
    background: white !important;
}

input:-webkit-autofill, input:-webkit-autofill:focus {
    background-color: transparent !important;
    -webkit-box-shadow: 0 0 0 50px white inset;
}

.euczelnia-input:hover {
    border-color: rgba(0, 0, 0, 0.87);
}

.euczelnia-input:focus {
    box-shadow: inset 0 0 0 1px #003767, inset 0 0 0 1px #003767, inset 0 0 0 1px #003767, inset 0 0 0 1px #003767;
}

.euczelnia-input[aria-invalid="true"], .euczelnia-input:focus[aria-invalid="true"] {
    color: #b00020;;
    border: 1px solid #b00020 !important;
    box-shadow: none !important;
}

.euczelnia-label {
    color: #3F4D59;
    display: flex;
    flex-direction: row;
    color: rgba(0, 0, 0, 0.6);
    transition-duration: 0.2s;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    font-style: normal;
    font-family: Roboto, Helvetica, Arial, "Lucida Grande", sans-serif;;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.48px;
}

.euczelnia-label[for][required]::before {
    content: "*";
    padding-right: 0.5rem;
    font-size: 1rem;
}

.euczelnia-label:has(+ .euczelnia-input[aria-invalid="true"]), .euczelnia-label.invalid {
    color: #CB0A0A;;
}

.euczelnia-label:has(+ .euczelnia-input-group .euczelnia-input[aria-invalid="true"]) {
    color: #b00020;;
}

.euczelnia-input-error {
    font-size: 0.75rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.125rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: none;
    display: flex;
    width: 100%;
    color: #CB0A0A;
    margin-top: 0.25rem;
}

.euczelnia-input-group {
    display: flex;
    flex-direction: row;
    position: relative;
    align-items: center;
}

.euczelnia-password-visibility {
    background-color: transparent;
    border: none;
    position: absolute;
    right: 0.5rem;
    cursor: pointer;
}

.visibility::before, .visibility_off::before {
    content: '';
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle
}

.visibility::before {
    background-image: url('../img/visibility.svg');
}

.visibility_off::before {
    background-image: url('../img/visibility_off.svg');
}

a {
    font-size: 0.875rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.3125rem;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-transform: none;
    color: #003767;
}

a:hover {
    cursor: pointer;
    color: #00172B;
}

.content-wrapper {
    display: block;
    border-radius: 0.5rem;
    padding: 3rem 1.5rem;
    flex-direction: column;
    background: #FFFFFF;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
    width: 550px;
    max-width: calc(100vw - 5rem);
    margin: 0 auto;
    position: relative;
}

@media (min-width: 500px) {
    .content-wrapper {
        padding: 3rem;
        max-width: calc(100vw - 9rem);
    }
}

.euczelnia-row-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1.5rem 0;
    gap: 1rem;
}

@media (min-width: 500px) {
    .euczelnia-row-wrapper {
        flex-direction: row
    }
}

.euczelnia-row-wrapper .euczelnia-link {
    text-align: center;
}

.euczelnia-registration {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

@media (min-width: 500px) {
    .euczelnia-registration {
        flex-direction: row;
    }
}

.euczelnia-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.euczelnia-button-primary {
    color: #ffffff;
    background: #003767;
    border: 0 none;
    padding: 1rem 2rem;
    font-size: 1rem;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, background-size 0.2 scubic-bezier(0.64, 0.09, 0.08, 1);
    border-radius: 8px;
    outline-color: transparent;
    min-width: 100%;
}

.euczelnia-button-primary:hover {
    background: #002749;
    color: #ffffff;
    border-color: transparent;
}

#kc-registration {
    color: #3F4D59;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0.56px;
}

.euczelnia-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #C1C5C9;
    font-size: 0.75rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.125rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: none;
    color: #3F4D59;
}

.alert-error {
    background: #FCE7E7;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: none;
    color: #3F4D59;
    display: flex;
    flex-direction: row;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-error .pf-c-alert__icon {
    display: inline;
    min-width: 1.5rem;
    min-height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('../img/error.svg');
}

.alert-success {
    background: #E7EFFC;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: none;
    color: #3F4D59;
    display: flex;
    flex-direction: row;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success .pf-c-alert__icon {
    display: inline;
    min-width: 1.5rem;
    min-height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url('../img/info.svg');
}

.checkbox label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    gap: 10px;
    position: relative;
}

.checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked ~ .custom-checkbox::after {
    content: "";
    background-image: url('../img/check.svg');
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -60%);
    font-size: 14px;
    color: #003366;
}

.euczelnia-locale {
    display: flex;
    flex-direction: row;
    justify-content: end;
}

.euczelnia-dropdown {
    position: relative;
    display: inline-block;
}

.euczelnia-dropdown > button {
    padding: .5rem 1rem;
    color: #003767;
    cursor: pointer;
    min-width: max-content;
    text-align: left;
    position: relative;
    border: none;
    background-color: transparent;
    transition: background-color 0.2s;
    font-size: .75rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.25rem;
    letter-spacing: .04em;
    text-decoration: underline;
    text-transform: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.euczelnia-dropdown > button[aria-expanded="true"] {
    background: #00376729;
}

.euczelnia-dropdown > button::after {
    content: '';
    background-image: url('../img/arrow_down.svg');
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center right;
    pointer-events: none;
    position: relative;
    padding-left: 0.25rem;
}

.euczelnia-dropdown > button:hover {
    background: #e6ebf0;
}

.euczelnia-dropdown ul {
    display: none;
    position: absolute;
    top: 110%;
    right: 0;
    z-index: 999;
    margin: 0;
    list-style: none;
    width: 100%;
    padding: 0;
    background-color: white;
    border-radius: 8px;
    min-width: max-content;
}

.euczelnia-dropdown > button[aria-expanded="true"] + ul {
    display: block;
}

.euczelnia-dropdown ul li {
    color: #003767;
    cursor: pointer;
    min-width: max-content;
    text-align: left;
    position: relative;
    border: none;
    transition: background-color 0.2s;
    font-size: .75rem;
    font-weight: 500;
    font-style: normal;
    line-height: 1.25rem;
    letter-spacing: .04em;
    text-transform: none;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.euczelnia-dropdown ul li a {
    font-size: .75rem;
    display: block;
    padding: .5rem 1rem;
    min-width: 100%;
    min-height: 100%;
    border-radius: 8px;
}

.euczelnia-dropdown ul li:hover {
    background-color: #e6ebf0;
}

.euczelnia-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 1.5rem 1rem;
}

@media (min-width: 500px) {
    .euczelnia-header {
        padding: 1.5rem 2rem;
        margin-bottom: 6.25rem;
    }
}

.header__logo-pg:after {
    content: "";
    display: flex;
    position: absolute;
    right: -3rem;
    top: 3px;
    height: 27px;
    width: 1px;
    margin: 0 1.5rem;
    background-color: #003767;
}

.euczelnia-top-bar-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.header__logo-pg {
    height: 32px;
    max-width: max-content;
    margin-right: 3rem;
    position: relative;
}

.header__logo-pgedu {
    max-height: 1rem;
}

.euczelnia-card__footer {
    text-align: center;
}

.euczelnia-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin: 0 0 2rem 0;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid #C1C5C9;
}

@media (min-width: 460px) {
    .euczelnia-list {
        gap: 1rem;
    }
}

.euczelnia-list-item {
    margin: 1rem 0;
    height: 4rem;
    width: 50%;
    box-shadow: 0 2px 6px #0000001a;
    border-radius: .5rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
    justify-items: stretch;
}

.euczelnia-list-item-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    width: 100%;
    justify-self: center;
    justify-content: center;
}

#social-google:before {
    display: block;
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    background-image: url('../img/google.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

@media (min-width: 500px) {
    #social-google:before {
        margin-right: 1rem;
    }
}

.euczelnia-link-wrapper {
    padding-left: 3rem;
}

:is(#social-cas-oidc, #social-gdansktech):before {
    display: block;
    content: '';
    width: 8rem;
    height: 3rem;
    background-image: url('../img/logo-pg_Polski.svg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

:lang(en) :is(#social-cas-oidc, #social-gdansktech):before {
    background-image: url('../img/logo-pg_English.svg');
}

@media (min-width: 460px) {
    :is(#social-cas-oidc, #social-gdansktech):before {
        height: 4rem;
        width: 9rem;
    }
}

:is(#social-cas-oidc, #social-gdansktech) .euczelnia-link-name {
    display: none;
}
