﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ctrlLogin {
    height: 100%;
    font-family: "Ubuntu", sans-serif;
    overflow-y: auto;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    height: auto;
    transition: grid-template-columns 0.5s ease;
}

.left-panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.06);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 1;
}

.login-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    max-width: 384px;
    margin: 0 auto;
    padding-bottom: 40px;

    transition: opacity 300ms ease-in-out;
    opacity: 1;
}

.login {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.greeting {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#alert-blocked, #alert-error {
    font-family: "Nunito Sans", sans-serif;
}

#alert-blocked {
    background-color: #FFF3D1;
    color: #856404;
    border: 1px solid #FFF3D1;
}

.greeting p {
    font-family: "Albert Sans", sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #8c8f9a !important;
}

.form-login {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-family: "Nunito Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #666a79;
    margin-bottom: 4px;
    display: block;
}

input {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fafbfc;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
}

input:hover {
    border-color: #666a79;
}

.enter-button {
    height: 46px;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    background-color: #6040a1;
    color: #ffffff;
    cursor: pointer;
    align-items: center;
    transition: all 0.2s ease;
}

.enter-button:hover {
    background-color: #3a2661;
}

.form-group {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-group label {
    white-space: nowrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.form-group button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    color: #666a79;
    font-size: 1.1rem;
}

.material-symbols-outlined {
    font-size: 16px;
}

.form-group button:hover input {
    border-color: #666a79;
}

.form-group button:focus {
    outline: none;
}

.forgot-password {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-forgot-password {
    color: #9747ff;
    border-radius: 8px;
    border: none;
    background-color: transparent;
    padding: 4px 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Dropdown Button */
.dropdown {
    display: flex;
    align-items: center;
}

.custom-dropdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 2px;
    font-size: 12px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    color: #666a79;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dropdown:hover {
    background: rgba(124, 123, 126, 0.05);
    cursor: pointer;
}

.custom-dropdown:focus {
    outline: none;
}

.dropdown-menu {
    width: 240px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

.footer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-politic,
.btn-first-access,
.dropbtn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.btn-politic:hover,
.btn-first-access:hover {
    background: rgba(124, 123, 126, 0.05);
}

/* FOOTER */
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-top {
    display: flex;
    justify-content: center;
    margin-bottom: 150px;
}

.footer-bottom {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dropdown,
.footer-policy,
.footer-access {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-container button {
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: #666a79;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.footer-container button:hover {
    background: rgba(124, 123, 126, 0.05);
}

.right-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fafbfc;
    transform-origin: right;
    transition: transform 0.5s ease, background-color 0.5s ease;
    height: 100%
}

.institucional-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 60px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.homeTextLimit {
    word-break: break-word;
    overflow-wrap: break-word;
    max-height: 100%;
    height: 100%;
    width: 100%;
    background-color: #fff;
}

.homeTextLimit * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    word-break: break-word !important;
}

.homeTextLimit font {
    all: unset;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    display: inline !important;
}

.homeTextLimit img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

.homeTextLimit table {
    width: 100% !important;
    table-layout: fixed;
    word-break: break-word;
}

.homeTextLimit p,
.homeTextLimit span,
.homeTextLimit div {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Animation */
.left-panel,
.right-panel {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.left-panel {
    transform-origin: left;
}

.institucional-content {
    transition: opacity 0.2s ease;
}

.shrink .right-panel {
    transform: scaleX(0.7);
    background-color: rgba(165, 99, 250, 0.1);
}

.shrink .left-panel {
    transform: scaleX(1.6);
}

.shrink .right-panel .institucional-content {
    opacity: 0;
}

.left-panel-wrapper {
    transform: scaleX(0.6666) translateX(25%);
    transform-origin: left;
    width: 150%;
    transition: transform 0.3s ease;
}

#boxContainer.shrink .login-content {
    opacity: 0 !important;
}

.login-container:not(.shrink) .left-panel-wrapper {
    transform: scaleX(1) translateX(0%);
    width: 100%;
}


/* ICON */
.visibility-icon {
    width: 18px;
    height: 18px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 18px;
    color: #666A79;
    flex: none;
    order: 0;
    flex-grow: 0;
    vertical-align: sub;
}

.language-icon, .arrow-icon, .article-icon, .key-icon {
    width: 18px;
    height: 18px;
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 18px;
    color: #666A79;
}


@media screen and (max-width: 1128px) {
    .left-panel {
        padding: 0px 50px;
    }

    .right-panel {
        padding: 0px 50px;
    }

    .institucional-content {
        padding: 0;
    }
}

@media screen and (max-width: 821px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .left-panel,
    .right-panel {
        width: 100%;
        padding: 1rem;
        transform: none !important; /* remove qualquer scaleX */
        transition: none !important; /* remove animação */
    }

    .left-panel {
        padding: 70px 16px;
    }

    .left-panel-wrapper {
        transform: none !important; 
        width: 100% !important;
    }

    .login-container.shrink {
        grid-template-columns: 1fr !important; 
    }

    .shrink .right-panel .institucional-content {
        opacity: 1 !important; /* força visibilidade do conteúdo no mobile */
    }

    .shrink .right-panel {
        background-color: #fafbfc !important;
    }

    .login-content,
    .institucional-content {
        width: 100%;
    }

    .institucional-content {
        padding: 0;
    }

    .right-panel {
        padding: 70px 16px;
    }

    .enter-button,
    .form-group,
    .input-wrapper {
        width: 100%;
    }

    .footer-container {
        gap: 0.5rem;
    }

    .footer-top {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 12px;
    }

    .footer-bottom {
        justify-content: center;
    }
}
