/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f3e5f5; /* Roxo muito claro no fundo */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Contêiner principal */
.container {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
}

/* Contêiner de mensagens */
.messages-container {
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    z-index: 1000;
}

/* Estilos para as mensagens de alerta */
.alert {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.alert:hover {
    opacity: 1;
}

.alert.success {
    background-color: #e1f5e1;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.info {
    background-color: #e1e0f7;
    color: #3f3d56;
    border: 1px solid #c9c7f0;
}

.alert.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Formulários */
.form-container {
    width: 50%;
    padding: 50px;
    background-color: #fff;
    transition: transform 0.6s ease-in-out;
}

.form-container.sign-in {
    transform: translateX(0);
}

.form-container.sign-up {
    transform: translateX(100%);
}

.form-img {
    text-align: center;
    margin-bottom: 20px;
}

.form-img img {
    max-width: 100px;
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6a1b9a; /* Roxo escuro para destaque */
}

h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

span {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #ba68c8; /* Roxo claro */
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #8e24aa; /* Roxo principal */
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #6a1b9a; /* Roxo escuro no hover */
}

/* Painel de alternância */
.toggle-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 1000;
}

.toggle {
    position: relative;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, #ab47bc, #6a1b9a);
    color: #fff;
    left: -100%;
    transition: transform 0.6s ease-in-out;
}

.toggle-panel {
    position: absolute;
    width: 50%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    top: 0;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.toggle-panel.toggle-left {
    transform: translateX(-200%);
}

.toggle-panel.toggle-right {
    right: 0;
    transform: translateX(0);
}

.toggle-panel h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.toggle-panel p {
    font-size: 14px;
    margin-bottom: 20px;
}

.toggle-panel button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toggle-panel button:hover {
    background-color: #fff;
    color: #8e24aa; /* Roxo claro no hover */
}
