@font-face {
    font-family: "Poppins Site";
    src:
        url("/fonts/poppins.light%20%281%29.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Poppins Site";
    src:
        url("/fonts/poppins.medium%20%281%29.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Poppins Site";
    src:
        url("/fonts/poppins.bold%20%281%29.ttf")
        format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

.login-page,
.cadastro-page {
    --auth-blue: #0649ad;
    --auth-blue-light: #f1f4ff;
    --auth-text: #a8a8aa;
    --auth-line: #e8e8e8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
    color: #111;
    font-family:
        "Poppins Site",
        Arial,
        Helvetica,
        sans-serif;
    font-weight: 300;
}

.login-page *,
.cadastro-page * {
    font-family: inherit;
}

.login-card,
.cadastro-card {
    background: #fff;
    box-shadow:
        0 8px 26px
        rgba(25, 35, 55, .09);
}

.login-card {
    width: min(630px, calc(100vw - 32px));
    min-height: 738px;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 66px 132px 52px;
    border-radius: 3px;
}

.login-logo {
    display: block;
    width: 116px;
    height: auto;
    margin: 0 auto 66px;
}

.login-form {
    width: 100%;
}

.login-fields {
    display: grid;
    gap: 51px;
}

.login-field,
.cadastro-field {
    cursor: text;
}

.login-field {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: end;
    gap: 18px;
    margin: 0;
    padding: 0 24px 14px 4px;
    border-bottom: 1px solid var(--auth-line);
}

.login-field--password {
    grid-template-columns:
        minmax(0, 1fr)
        30px
        30px;
    gap: 12px;
    padding-right: 4px;
}

.login-field__content,
.cadastro-field__content {
    min-width: 0;
    display: block;
}

.login-field strong,
.cadastro-field strong {
    display: block;
    margin: 0 0 7px;
    color: var(--auth-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.login-field input,
.cadastro-field input {
    width: 100%;
    height: 27px;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #454545;
    font-size: 15px;
    font-weight: 300;
    line-height: 27px;
}

.login-field input::placeholder,
.cadastro-field input::placeholder {
    color: var(--auth-text);
    opacity: 1;
}

.login-field:focus-within,
.cadastro-field:focus-within {
    border-bottom-color: var(--auth-blue);
}

.login-field__icon {
    width: 23px;
    height: 23px;
    object-fit: contain;
    justify-self: center;
    margin-bottom: 4px;
}

.auth-password-toggle {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    margin: 0 0 1px;
    padding: 3px;
    border: 0;
    border-radius: 50%;
    outline: 0;
    background: transparent;
    cursor: pointer;
}

.auth-password-toggle img {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
    transition:
        filter .18s ease,
        opacity .18s ease;
}

.auth-password-toggle:hover {
    background: var(--auth-blue-light);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid rgba(6, 73, 173, .35);
    outline-offset: 2px;
}

.auth-password-toggle.is-active img {
    filter:
        brightness(0)
        saturate(100%)
        invert(25%)
        sepia(97%)
        saturate(2211%)
        hue-rotate(205deg)
        brightness(79%)
        contrast(104%);
}

.login-btn,
.cadastro-btn {
    border: 0;
    background: var(--auth-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition:
        filter .18s ease,
        transform .18s ease;
}

.login-btn {
    width: 100%;
    height: 89px;
    margin-top: 39px;
    border-radius: 4px;
    font-size: 16px;
}

.login-btn:hover,
.cadastro-btn:hover {
    filter: brightness(.96);
}

.login-btn:active,
.cadastro-btn:active {
    transform: translateY(1px);
}

.login-register {
    width: 100%;
    min-height: 87px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 31px;
    border-radius: 4px;
    background: var(--auth-blue-light);
    color: var(--auth-blue);
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.login-register img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.login-register:hover,
.login-forgot:hover,
.cadastro-link:hover {
    color: var(--auth-blue);
    text-decoration: underline;
}

.login-forgot {
    margin-top: 34px;
    color: var(--auth-blue);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.auth-msg {
    width: 100%;
    margin: -36px 0 24px;
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.auth-msg.error {
    background: #fff0f0;
    color: #c62828;
}

.auth-msg.info {
    background: var(--auth-blue-light);
    color: var(--auth-blue);
}

.cadastro-card {
    position: relative;
    width: min(912px, calc(100vw - 48px));
    min-height: 728px;
    padding: 36px 76px 42px;
    border-radius: 3px;
}

.cadastro-form {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 336px) minmax(0, 264px);
    justify-content: space-between;
    gap: 82px;
}

.cadastro-painel-formulario {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-top: 109px;
}

.cadastro-painel-formulario .auth-msg {
    margin: -72px 0 20px;
}

.cadastro-campos-scroll {
    height: 358px;
    display: grid;
    align-content: start;
    gap: 37px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 25px 0 2px;
    scrollbar-color: #dedede transparent;
    scrollbar-width: auto;
}

.cadastro-campos-scroll::-webkit-scrollbar {
    width: 10px;
}

.cadastro-campos-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cadastro-campos-scroll::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #dedede;
}

.cadastro-field {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: end;
    gap: 17px;
    padding: 0 3px 11px 0;
    border-bottom: 1px solid var(--auth-line);
}

.cadastro-senha-bloco {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.cadastro-field--password {
    grid-template-columns:
        minmax(0, 1fr)
        28px
        28px;
    gap: 10px;
    padding-right: 0;
}

.cadastro-senha-regras {
    margin: 0 3px 0 0;
    color: #6f7580;
    font-size: 11px;
    font-weight: 300;
    line-height: 1.45;
}

.cadastro-field strong {
    font-size: 15px;
}

.cadastro-field input {
    font-size: 14px;
}

.cadastro-field > img {
    width: 21px;
    height: 21px;
    object-fit: contain;
    justify-self: center;
    margin-bottom: 4px;
}

.cadastro-btn {
    width: calc(100% - 24px);
    height: 75px;
    margin: 50px 24px 0 2px;
    border-radius: 7px;
    font-size: 14px;
}

.cadastro-painel-foto {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.cadastro-logo {
    width: 110px;
    height: auto;
    margin: 0 auto 48px;
}

.cadastro-foto-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.cadastro-foto-preview {
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #2026ff;
    border-radius: 16px;
    background: #f3f5ff;
    cursor: pointer;
}

.cadastro-foto-preview > span {
    width: 158px;
    height: 158px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #e2e8ff;
}

.cadastro-foto-preview img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.cadastro-foto-preview.is-selected {
    overflow: hidden;
    border-style: solid;
}

.cadastro-foto-preview.is-selected > span {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: transparent;
}

.cadastro-foto-preview.is-selected img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cadastro-foto-input:focus-visible + .cadastro-foto-preview,
.cadastro-foto-preview:hover {
    outline: 2px solid rgba(6, 73, 173, .25);
    outline-offset: 3px;
}

.cadastro-anexar {
    width: 264px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 23px;
    border: 1px solid var(--auth-blue);
    border-radius: 7px;
    color: var(--auth-blue);
    cursor: pointer;
    font-size: 14px;
    font-weight: 300;
}

.cadastro-anexar img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.cadastro-anexar span {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cadastro-link {
    position: absolute;
    right: 94px;
    bottom: 136px;
    min-width: 225px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--auth-blue);
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}

.cadastro-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .cadastro-page {
        align-items: flex-start;
        padding: 18px;
    }

    .cadastro-card {
        width: min(100%, 600px);
        min-height: 0;
        padding: 40px 34px 38px;
    }

    .cadastro-form {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .cadastro-painel-foto {
        order: -1;
    }

    .cadastro-logo {
        margin-bottom: 30px;
    }

    .cadastro-painel-formulario {
        padding-top: 0;
    }

    .cadastro-painel-formulario .auth-msg {
        margin: 0 0 20px;
    }

    .cadastro-campos-scroll {
        height: auto;
        max-height: none;
        gap: 28px;
        overflow: visible;
        padding-right: 0;
    }

    .cadastro-btn {
        width: 100%;
        margin: 36px 0 0;
    }

    .cadastro-link {
        position: static;
        margin: 34px auto 0;
    }
}

@media (max-width: 700px) {
    .login-page {
        align-items: flex-start;
        padding: 0;
    }

    .login-card {
        width: 100%;
        min-height: 100vh;
        padding: 56px max(28px, 9vw) 40px;
        border-radius: 0;
        box-shadow: none;
    }

    .login-logo {
        width: 104px;
        margin-bottom: 58px;
    }

    .login-fields {
        gap: 42px;
    }

    .login-field {
        padding-right: 10px;
    }

    .login-field strong {
        font-size: 14px;
    }

    .login-field input {
        font-size: 14px;
    }

    .login-btn {
        height: 70px;
        margin-top: 34px;
    }

    .login-register {
        min-height: 70px;
        margin-top: 24px;
        font-size: 14px;
    }

    .auth-msg {
        margin-top: -30px;
    }

    .cadastro-foto-preview {
        width: min(260px, 100%);
        aspect-ratio: 1;
        height: auto;
    }

    .cadastro-anexar {
        width: min(264px, 100%);
    }
}

@media (max-width: 380px) {
    .cadastro-card {
        padding-right: 22px;
        padding-left: 22px;
    }

    .cadastro-foto-preview > span {
        width: 132px;
        height: 132px;
    }

    .login-register {
        gap: 15px;
    }
}

@media (max-height: 780px) and (min-width: 701px) {
    .login-page,
    .cadastro-page {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-btn,
    .cadastro-btn,
    .auth-password-toggle img {
        transition: none;
    }
}
