body {
    background: #18181b;
    color: #222;
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    /* Remova o flex e centralização */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

.left-panel {
    flex: 1 1 0%;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 0; /* Ajustando o z-index da .left-panel */
}

.left-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: moveBackground 10s linear infinite;
    z-index: 1; /* Adicionando z-index para a animação da pseudo-classe */
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50%, 50%);
    }
    100% {
        transform: translate(0, 0);
    }
}

.illustration {
    width: 70%;
    max-width: 400px;
    height: auto;
    display: block;
}

.right-panel {
    flex: 0 0 400px;
    max-width: 400px;
    width: 100%;
    background: #18181b;
    color: #f3f3f3;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 0;
    margin: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.logo {
    width: 32px;
    height: 32px;
}

.right-panel h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #fff;
}

.subtitle {
    color: #bdbdbd;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-label {
    font-size: 0.98rem;
    color: #bdbdbd;
    margin-bottom: 4px;
    display: block;
}

input[type="text"],
input[type="password"] {
    background: #23232a;
    color: #fff;
    border: 1.5px solid #353542;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    width: 100%; /* Ajustar para a mesma largura do botão 'Entrar' */
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 2px;
}

/* Garante que o botão do olho fique dentro do campo de senha */
.password-wrapper {
    position: relative;
    width: 100%;
}
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 40px;
}
.password-wrapper button#togglePassword {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #a18cd1;
}

.extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.remember-me label {
    cursor: pointer;
    margin-left: 6px;
    color: #bdbdbd;
}

a {
    color: #a18cd1;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.98rem;
}

a:hover {
    color: #fbc2eb;
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    color: #23232a;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #fbc2eb 0%, #a18cd1 100%);
    transform: translateY(-2px) scale(1.03);
}

.btn-google {
    background: #fff;
    color: #23232a;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    transition: background 0.2s, border 0.2s;
}

.btn-google:hover {
    background: #f5f5f5;
    border: 1px solid #a18cd1;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.register {
    margin-top: 12px;
    font-size: 1rem;
    color: #bdbdbd;
}

.erro-msg {
    color: #ff4d4d !important;
    background: #2a1a1a;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,77,77,0.08);
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        width: 100vw;
        min-width: 0;
        height: auto;
        min-height: 100vh;
    }
    .left-panel {
        display: none;
    }
    .right-panel {
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
        height: 100vh;
        padding: 0 4vw;
        align-items: center;
        box-shadow: none;
        justify-content: center;
        display: flex;
    }
    form {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100vw;
        height: 100vh;
    }

    .right-panel {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: auto;
        padding: 20px 30px; /* Adicionando mais espaço nas laterais */
        /* border: 2px solid #353542; */ /* Removendo a borda para telas pequenas */
        box-sizing: border-box;
    }
    .right-panel h2,
    .subtitle,
    .register,
    .erro-msg {
        text-align: left; /* alinhamento à esquerda */
        width: 100%;
        word-break: break-word;
    }
    .right-panel h2 {
        font-size: 1.1rem; /* Aumentado em 10% */
        margin-bottom: 4px;
    }
    .subtitle {
        font-size: 0.93rem; /* Aumentado em 10% */
        margin-bottom: 10px;
    }
    form {
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }
    .password-wrapper input[type="text"],
    .password-wrapper input[type="password"],
    input[type="text"] {
        font-size: 0.93rem;
        padding: 8px 40px 8px 7px; /* padding-right igual ao campo de senha */
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        height: 40px;
    }
    .password-wrapper button#togglePassword {
        right: 6px;
        width: 28px;
        height: 28px;
    }
    .btn-primary {
        font-size: 0.92rem;
        padding: 7px;
        width: 85%;           /* reduzido em 15% */
        max-width: 85%;
        box-sizing: border-box;
    }
    .register {
        font-size: 0.93rem; /* Aumentado em 10% */
        margin-top: 6px;
    }
    .erro-msg {
        font-size: 0.93rem; /* Aumentado em 10% */
        padding: 6px 6px;
    }
    .extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        font-size: 0.93rem; /* Aumentado em 10% */
        width: 100%;
    }
    .extras a {
        font-size: 0.93rem; /* Aumentado em 10% */
        word-break: break-word;
    }
}

@media (max-width: 400px) {
    .right-panel {
        padding: 0 1vw;
    }
    .right-panel h2 {
        font-size: 0.85rem;
    }
    .subtitle {
        font-size: 0.75rem;
    }
    .btn-primary {
        font-size: 0.85rem;
        padding: 5px;
    }
    input[type="text"],
    input[type="password"] {
        font-size: 0.75rem;
        padding: 5px 4px;
    }
    .register,
    .erro-msg {
        font-size: 0.75rem;
    }
}

@media (min-width: 901px) {
    .right-panel {
        flex: 0 0 460px; /* Aumentado em 15% */
        max-width: 460px;
        height: 100%; /* Respeitar limite da página */
        border: 2px solid #353542; /* Adicionando bordas */
        box-sizing: border-box;
        padding: 30px 40px; /* Adicionando mais espaço nas laterais para telas grandes */
    }
}
