* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1a1a2e;
    color: #e4e4e4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #2a2a47;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    position: relative;
    padding-bottom: 70px; /* Adiciona espaço no rodapé para o botão de idioma */
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

header h1, header h4, header a {
    color: #8be9fd;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    margin: 0;
}

header h1 {
    font-size: 1.8rem;
}

header h4, header h5 {
    font-size: 1.2rem;
    margin-top: 5px;
}

header h5 {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b9b9d1;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #4a4a6e;
    border-radius: 6px;
    background-color: #3b3b5c;
    color: #e4e4e4;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #8be9fd;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    background-color: #3b3b5c;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background-color: #8be9fd;
    color: #1a1a2e;
    font-weight: bold;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.btn-primary {
    background-color: #8be9fd;
    color: #1a1a2e;
}

.btn-primary:hover {
    background-color: #61dafb;
    transform: translateY(-2px);
}

/* Estilos para o botão de idioma, agora fixo no canto inferior esquerdo */
.lang-toggle-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 0;
    background-color: #3b3b5c;
    border-radius: 6px;
    border: 1px solid #4a4a6e;
    overflow: hidden;
    margin-left: 10px;
}

.lang-btn {
    width: auto;
    padding: 10px 15px;
    background: none;
    color: #b9b9d1;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.lang-btn.active-lang {
    background-color: #8be9fd;
    color: #1a1a2e;
}

/* Estilos para dispositivos móveis */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 20px;
        padding-bottom: 70px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option,
    .radio-label {
        width: 100%;
        text-align: center;
    }
    
    .lang-toggle-container {
        left: 20%;
        transform: translateX(-50%);
    }
}