*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url(Public/Imagens/ponte.jpg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

input:required {
    border-color: 1px solid #4f565e;
    box-shadow: none;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
}

footer iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border: none;
    background-color: #111; 
}


.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
    background-color: #363b41;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    position: relative;
    overflow: hidden;
    width: 800px;
    max-width: 100%;
    min-height: 600px;
    margin: 20px auto;
}

h1, p {
    color: #eee;
    text-align: center;
    margin-bottom: 1rem;
}

p {
    font-size: 16px;
}


.align_input {
    display: flex;
    align-items: center;
}


.form_container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.sign_in_container {
    background-color: #363b41;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign_up_container{
    background-color: #363b41;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    left: 0;
    width: 50%;
    z-index: 2;
}
  
.label_style {
    display: flex;
    align-items: center;
    background-color: #363b41;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    color: #eee;
    margin-bottom: 1rem;
}
  
.label_style svg {
    fill: #868686;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}
  
button, input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #3b4148;
    border: 1px solid #4f565e;
    border-radius: 8px;
    color: #eee;
    font-size: 1rem;
    transition: background-color 0.3s;
    user-select: none;
}
  
input:focus,
textarea.form_input:focus {
    background-color: #434a52;
    outline: none;
}
  
button {
    background-color: #F2B705;
    color: #eee;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s;
}
  
  button:hover {
    background-color: #F28A2E;
}
  
.hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

textarea.form_input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #3b4148;
    border: 1px solid #4f565e;
    border-radius: 8px;
    color: #eee;
    font-size: 1rem;
    transition: background-color 0.3s;
    resize: none; 
}

textarea.form_input::-webkit-scrollbar {
    width: 8px;
}

textarea.form_input::-webkit-scrollbar-thumb {
    background-color: #4f565e;
    border-radius: 8px;
    transition: background-color 0.3s ease; /* Suaviza a transição de cor */
}

textarea.form_input::-webkit-scrollbar-thumb:hover {
    background-color: #8a8f97; /* Cor mais clara ao passar o mouse */
}

textarea.form_input::-webkit-scrollbar-track {
    background: #2a2f34;
    border-radius: 8px;
}

.overlay_container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    background: #F26938;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 100%; /* Alterado de 200% para 100% */
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    left: 0;
    transform: translateX(-100%);
    width: 100%; /* Alterado de 200% para 100% */
}

.overlay-right {
    left: 0; /* Posiciona à direita do overlay-left */
    transform: translateX(0);
    width: 100%; /* Alterado de 200% para 100% */
}

/* CLASSES DE TRANSIÇÃO */
.container.right-panel-active .sign_in_container {
    transform: translateX(100%);
}

.container.right-panel-active .sign_up_container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.container.right-panel-active .overlay_container {
    transform: translateX(-100%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
    .container {
        min-height: auto;
        margin-bottom: 120px;
        width: 95%;
    }
    footer {
        position: fixed;
        bottom: 0;
        height: 80px;
    }
    footer iframe {
        min-height: 80px;
    }
    .form_container {
        padding: 1rem;
    }
    .sign_in_container, 
    .sign_up_container {
        width: 100%;
        position: relative;
        padding: 1rem;
    }
    .overlay_container {
        display: none;
    }
}

.main-content {
    padding-bottom: 150px;
}

@media (max-width: 480px) {
    .container {
        margin-bottom: 100px;
    }
    footer {
        height: 60px;
    }
    footer iframe {
        min-height: 60px;
    }
}